[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Lisp Test



Here are some questions I'm thinking about putting into a lisp teasers
test. In order so that I can get an idea of how difficult the questions
are, please reply with your answers. Take no longer than 4 minutes.

What are the return values of the following expressions when evaluated:
[1] (let ((x (list nil))) (car x))
[2] (let ((x (list nil))) (setf (car x) 5) (car x))
[3] (flet ((g () 5)) (g))
[4] (flet ((g () 5)) (setf #'g #'(lambda () 7)) (g))