| Modifier and Type | Method and Description |
|---|---|
PersistentSet<T> |
PersistentSet.add(T element)
Creates and returns a new
PersistentSet identical to
this one, except it contains element. |
PersistentSet<T> |
PersistentSet.addAll(PersistentSet<T> set)
Add all the items in the given set to this set.
|
PersistentSet<T> |
PersistentSet.clone()
Cloning takes constant time, regardless of the size of the set.
|
PersistentSet<T> |
PersistentSet.remove(T element)
Make a new
PersistentSet identical to this one,
except that it does not contain element. |
| Modifier and Type | Method and Description |
|---|---|
PersistentSet<T> |
PersistentSet.addAll(PersistentSet<T> set)
Add all the items in the given set to this set.
|
Copyright (c) 2006 C. Scott Ananian