3 ms·
You want seq? user=> (type (cons 1 '(2 3))) #<Class@bc57b40 clojure.lang.Cons> user=> (type (conj '(2 3) 1)) #<Class@6137cf6e clojure.lang.PersistentLi
by monads_wtf 10y ago
You want seq?
user=> (type (cons 1 '(2 3)))
#<Class@bc57b40 clojure.lang.Cons>
user=> (type (conj '(2 3) 1))
#<Class@6137cf6e clojure.lang.PersistentList>
user=> (seq? (cons 1 '(2 3)))
true
user=> (seq? (conj '(2 3) 1))
true
- qwertyuiop924 10y agoAnd that's really unintuitive and confusing. Especially coming from common lisp or scheme.