I found CLJ-1060 [1] and added there a patch with Cons implementing IPersistentList and (apply list args) in one-argument case of list*.
Marek [1] http://dev.clojure.org/jira/browse/CLJ-1060 On Wednesday, December 26, 2012 9:35:25 PM UTC+1, Marek Šrank wrote: > > function list* doesn't return a list, because it uses 'cons' under the > hood: > > (list? (list* 1 2 3 '())) > ;=> false > > (class (list* 1 2 3 '())) > ;=> clojure.lang.Cons > > ...however, its docstring says: "Creates a new list containing the items > prepended to the rest, the last of which will be treated as a sequence." > > I think that this can be pretty confusing... Shouldn't it be fixed (at > least the docstring)? > > > Cheers, > Marek. > > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en