- Type Parameters:
E- the type of element in this set
- All Known Implementing Classes:
PSet
public interface PersistentSet<E>
A persistent set data structure.
-
Method Summary
-
Method Details
-
empty
- Returns:
- an empty set
-
plus
- Parameters:
e- an element- Returns:
- a new set with the elements of this set and
e
-
minus
- Parameters:
e- an element- Returns:
- a new set with the elements of this set except
e
-
contains
- Parameters:
e- an element- Returns:
- whether this set contains
e
-
stream
- Returns:
- a
Streamof the elements in this set
-
asSet
An immutable view of this as ajava.util.Set.
-