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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started