Hacker News new | ask | show | jobs
by eggsyntax 2430 days ago
There are two things I found confusing in the first part of the guide (ie the part up to "Reading the Source"). The first is 'where', which is addressed in another thread on this page. The second is this:

  This is a proper list:
  
  (a b c)
  
  and this is not:
  
  (a b . c)
Could someone clarify how to interpret '(a b . c)'? How would it be represented in the non-abbreviated dot notation for pairs? It's not '(a . (b . (c . nil))' -- is it '((a . b) . c)'? The only Lisp I'm fluent in is Clojure, so I'm not used to the dot notation; otherwise this might be obvious.
1 comments

(a b . c) is (a b) with the final nil replaced with c.

In other words, it is (a . (b . c)).

Thanks, that clarifies it completely!