Can someone please explain me what is the dot notation in lists:
(first . second)
Why not just:
(first second)
Thanks!Discuss and learn Lisp programming of all dialects
This is a read-only archive of lispforum.com. The forum was locked to new users and posts and is preserved here as static HTML from a database snapshot taken on 2019-09-07.
3 posts · 6728 views
(first . second)
Why not just:
(first second)
Thanks!(cons 'first 'second) ==> (first . second)
(cons 'first (list second)) ==> (first second)