Question: Please only use append, car, cdr, compose, list, cons to write a Racket function remove2 that takes in one list parameter and returns a list

Please only use append, car, cdr, compose, list, cons to write a Racket function remove2 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.

Please do not use length fuction!

Thank you!

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!