I thought it was odd too so I think something that makes this easier
would be good.

On Sep 15, 9:00 pm, grignaak <grign...@gmail.com> wrote:
> Does it seem odd to anyone else that this function is missing in core?
> I propose it gets added.
>
> (defn queue
>  ([] clojure.lang.PersistentQueue/EMPTY )
>  ([x] (conj (queue) x))
>  ([x y] (conj (queue x) y))
>  ([x y & more] (into (queue x y) more)))
>
> Also, to get a good string representation in the repl, you have to
> call seq on the queue. This should probably be fixed as well
>
> --grignaak

-- 
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

Reply via email to