(def into! #(reduce conj! %1 %2))?

On Mar 20, 10:32 am, László Török <ltoro...@gmail.com> wrote:
> Hi,
>
> While implementing qsort with clojure for fun, I thought about using
> transient vectors to speed up sorting vs the "naive" functional
> implementation.
>
> I need an *into!* version of *into *when joining two sorted subarrays and I
> was wondering why there isn't one.
>
> It seems that (source into) does in fact support a transient collection as
> the first argument, however it calls persistent! on the result.
>
> What was the rationale behind the decision? (Note: I'm not questioning it,
> just interested.)
> Is there a particular reason why this feature remains undocumented?
>
> --
> László Török

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