Question: 2. (3 points) Write a recursive function in Scheme, called get-element which takes two parameters, an index and a list. The function returns the element
2. (3 points) Write a recursive function in Scheme, called get-element" which takes two parameters, an index and a list. The function returns the element at the given index position in the list or #fif element is not contained. Indices start at 1 and go to the length of the list. 3. (1 point) Question: How would you change the function so it returns the whole list if the element is not contained
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
