Question: 1 ) Consider the function given below: ( defun things ( x ) ( if ( null x ) ' ( ) ( if (

1) Consider the function given below:
(defun things (x)
(if (null x)
'()
(if (>(car x)10)
(cons (+(car x)1)(things (cdr x)))
(cons (-(car x)1)(things (cdr x))))))
Show the evolution resulting from the following call:
LISP>(things '(11-231))

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 Programming Questions!