Question: Problem 1 ;; ;; Using the data definition for ListOfInteger, design a function called ;; even - only that consumes a list of integers and

Problem 1
;;
;; Using the data definition for ListOfInteger, design a function called
;; even-only that consumes a list of integers and produces a list that
;; only contains the even integers. Note that there is a primitive named
;; even? that you will find helpful!
(@problem 1)
(@htdd ListOfInteger)
;; ListOfInteger is one of:
;; - empty
;; -(cons Integer ListOfInteger)
;; interp. a list of integers

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!