Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intranet And Web Databases For Dummies

Authors: Paul Litwin

1st Edition

0764502212, 9780764502217

Students also viewed these Databases questions

Question

How is lean production associated with JIT?

Answered: 1 week ago

Question

=+structure and a transnational organizational structure?

Answered: 1 week ago

Question

How do Data Types perform data validation?

Answered: 1 week ago

Question

How does Referential Integrity work?

Answered: 1 week ago