On Sep 23, 2:20 am, Kevin Livingston
wrote:
> what's the actual use case where you want this?
> it seems pretty weird just on it's own. it may in practice be more
> clever than other solutions, but that's not clear yet. if you just
> want a unique symbol there's (gensym)
For the sake of illus
On Sep 23, 2:18 am, Andy Fingerhut wrote:
> To be very precise, (conj v new-elem) is O(log n) in time and space, but it
> is "constant-ish" because the base of the logarithm is something like 32,
> rather than something like 2, so the constant factor multiplying the log n
> is typically pretty s
On Sep 23, 1:39 am, Nathan Sorenson wrote:
> Just to clarify, you want to conj a vector to itself? i.e. [1 2 3 4] --> [1
> 2 3 4 [1 2 3 4]] I'm curious what the application of this is.
>
> Regarding the overhead of conj-ing to a vector: Clojure's data structures
> make use of structural sharing s
this is
(conj v v). Is the overhead of doing this in clojure the addition of
a
pointer (of some kind) to v, or is it something else?
Thanks.
F Lengyel
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email