7 ms·
> List? predicate... (list? '(1)) => true (list? '(1 2)) => false Uh? That doesn't seem to be the case on http://tryclj.com/ http://tryclj.com/ or according to
by philh 12y ago
> List? predicate... (list? '(1)) => true (list? '(1 2)) => false
Uh? That doesn't seem to be the case on http://tryclj.com/ http://tryclj.com/ or according to http://clojuredocs.org/clojure.core/list_q http://clojuredocs.org/clojure.core/list_q .
- cichli 12y agosyntax-quote can cause this: > (type `(1)) clojure.lang.PersistentList > (type `(1 2)) clojure.lang.Cons > (list? `(1 2)) false edit: however http://clojure.org/reader#syntax-quote http://clojure.org/reader#syntax-quote does specify that syntax-quote is not the same as quote for some forms, including lists.