Hi Stefan,
I did not search in Jira, I don't know whether this is a known bug.
I use the Lars' work-around in the context I need contains? with a
transient set.
Regards,
Burt
Am Mittwoch, 4. Dezember 2013 14:29:35 UTC+1 schrieb Stefan Kamphausen:
>
> It looks like you're onto something here
>
> get works with transient maps:
>
> (get (transient {:a 1 :b 2}) :a)
> ;=> 1
>
> and with transient vectors, too:
>
> (get (transient [1 2 3]) 0)
> ;=> 1
>
> but not with transient sets:
>
> (get (transient #{1 2 3}) 2)
> ;=> nil
>
> And using contains? in a reduce with a transient accumulator does not seem
> too far fetched to me.
>
> According to clojure.org/transients: "Transients support the read-only
> interface of the source, i.e. you can call *nth*, *get*, *count* and
> fn-call a transient vector, just like a persistent vector."
>
> Did you search in Jira whether this is a known issue?
>
>
> Regards,
> Stefan
>
--
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.