Question: Please only use append, car, cdr, compose to 1. write a Racket function re_two that takes in one list parameter and returns a list except

Please only use append, car, cdr, compose to

1. write a Racket function re_two that takes in one list parameter and returns a list except with the second and third elements removed. If the given list does not have at least 3 elements, the function should return an empty list.

2.write a Racket function my_reverse that will reverse its simple list parameter.

3. write my_delete that takes two parameters: an atom and a list (which may be a nested list). This function will produce a list, identical to its parameter list, except with all occurrences of an atom parameter removed, no matter how deep they were. The produced list should not have anything in place of the deleted atoms.

Thank you in advance!

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!