I looked at the source code. ImmutableSet doesn't support adding
adding or removing elements incrementally. You can make an
ImmutableSet.Builder from an existing ImmutableSet of n elements and
then make a batch of m updates from which it will construct a new
ImmutableSet in O(n+m) time. It simply isn't a persistent data
structure.

-Per

On Mon, Apr 5, 2010 at 8:06 PM, ineol <leo.l...@gmail.com> wrote:
> It has nothing to do with Clojure but your colleague can look at the
> Google collection library that contains an ImmutableSet.
> http://guava-libraries.googlecode.com/svn/trunk/javadoc/com/google/common/collect/ImmutableSet.html
>
> --
> 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
>
> To unsubscribe, reply using "remove me" as the subject.
>

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