News for hackers. Stuff that matters.
Re:Land of Lisp is finally out...and has a music video. by brisance on Wednesday October 27, 2010 @04:54AM (#1837823)
I'm learning LISP through this book, and it's fun!

On p.42, when explaining the c*r functions, I found it easier to just read the "sequence" right-to-left.

For example:

  (cadadr '((peas carrots tomatoes) (pork beef chicken) duck))
  BEEF
Read as "rest, first, rest, first" of the cons cells, where "a" means "first" and "d" means "rest of the cons cell(s)".

Aside: I am now beginning to appreciate Clojure more. :P

There are no comments on this comment yet.