Question: 5. Let FUNC be the following lisp function: (DEFUN FUNC (L) COND (NULL L) NIL) ((NULL (CDR L)) (CAR L)) (T (FUNC (CDR L)) The

 5. Let FUNC be the following lisp function: (DEFUN FUNC (L)

5. Let FUNC be the following lisp function: (DEFUN FUNC (L) COND (NULL L) NIL) ((NULL (CDR L)) (CAR L)) (T (FUNC (CDR L)) The NULL function returns a true value if its argument is an empty list. (a) What does the function return when passed (A B) as its argument? (b) What does the function return when passed (A (B C)) as its argument? (c) What does the function return when passed (A B (C)) as its argument? (d) in general, What does the function return when passed a list L

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!