Not really homework. But it is pretty basic, so I thought this forum was the best.
I'm brand new to Lisp and am working through the online tutorial:
http://art2.ph-freiburg.de/Lisp-Course
Why does first return NIL and rest return (NIL)?
COS
I'm brand new to Lisp and am working through the online tutorial:
http://art2.ph-freiburg.de/Lisp-Course
Why does first return NIL and rest return (NIL)?
(first '(() ()))
NIL
(rest '(() ()))
(NIL)
Why does first return 1, second return 2, and last return (3)?(first '(1 2 3))
1
(second '(1 2 3))
2
(last '(1 2 3))
(3)
Many thanks,COS