1. Define a function insert that expects an index, an item, and a Lisp-like list as arguments. The function returns a list in which the item is inserted at the given index position. 2. Define a...


1. Define a function insert that expects an index, an item, and a Lisp-like list as arguments. The function returns a list in which the item is inserted at the given index position.


2. Define a recursive function equals for two Lisp-like lists. Two lists are equal if they are both empty, or their first items are equal and the rest of their items are equal.



May 19, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here