Question: (6 marks) Dene a procedure deep list - remove that takes two inputs: 3 test procedure and a List.As output, it produces a List that

(6 marks) Dene a procedure deep list - remove that takes two inputs: 3 test procedure and a List.As output, it produces a List that is a copy of the input List with all of the elements for which the test procedure evaluates to true removed. Note the input list could be deep list. For example, > (deep-list-remove(lambda (x) (= x 9)) (list 0 1 2 3)) ;returns (1 2 3). > (deep-list-remove(lambda (x) (
(6 marks) Define a procedure deep-list-remove that takes two inputs: a test procedure and a List.As output, it produces a List that is a copy of the input List with all of the elements for which the test procedure evaluates to true removed. Note the input list could be deep list. For example, > (deep-list-remove (1ambda (x) (= x 0)) (list 0 1 2 3)) ;returns (1 2 3). > (deep-list-remove (lambda (x) ( < 4)) '(7 2 (3 4 (5 6)))) ; returns (7 ( 4 (56))).
Step by Step Solution
There are 3 Steps involved in it
define deeplistremove testprocedure lst cond null lst pair lst c... View full answer
Get step-by-step solutions from verified subject matter experts
