If any (...) structure will do, test with seq? instead. If you really
need a PersistentList, you'll probably have to call that class's
constructor or resort to icky hacks like
user=> (class (apply list (cons 4 '(1 2 3))))
clojure.lang.PersistentList
(though much more evil would be
user=> (class (eval `(quote ~(cons 4 '(1 2 3)))))
clojure.lang.PersistentList
instead), because for some odd reason and despite its name (list* 4
'(1 2 3)) returns a clojure.lang.Cons.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo...@googlegroups.com
Note that posts from new members are moderated - please be patient with your first post.
To unsubscribe from this group, send email to
clojure+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
You're welcome.