|
|
|
|
|
by lispm
750 days ago
|
|
and then you get this in Clojure: user=> (list? (cons 1 '(2 3)))
false
user=> (cons 1 '(2 3))
(1 2 3)
That's "strange", isn't it? It prints as (1 2 3), but it is not a list? So there are things which print as lists, but aren't lists? What? Which also means that when we print it and read it back, it will be of a different type and list? will be true?! ELISP> (listp (cons 1 '(2 3)))
t
Puh, Emacs Lisp got it right. |
|