Am 30.11.2008 um 10:00 schrieb puzzler:
> Is there a way to write concatvec in an O(1) way, taking advantage of
> sharing?
> I suspect that the "obvious way" to concatenate vectors, i.e., (into
> [] (concat v1 v2)), would be O(n).
You may want to use the reduce with conj.
(reduce conj v1 v2)
This is O(count v2).
Sincerely
Meikel