An immutable, ordered, extensional set
This data-structure maintains balance using the AVL algorithm.
Value members
Abstract methods
Concrete methods
Return a set containing the intersection of elements with this set and the given set. O(n log n)
Return a set containing the intersection of elements with this set and the given set. O(n log n)
- Source:
- Set.scala
Add's the given element to the set if it is not already present. O(log n)
Add's the given element to the set if it is not already present. O(log n)
- Source:
- Set.scala
Return a set containing the union of elements with this set and the given set. O(n log n)
Return a set containing the union of elements with this set and the given set. O(n log n)
- Source:
- Set.scala
Return a set that has any elements appearing in the removals set removed O(n log n)
Return a set that has any elements appearing in the removals set removed O(n log n)
- Source:
- Set.scala
Add's the given element to the set if it is not already present. O(log n)
Add's the given element to the set if it is not already present. O(log n)
- Source:
- Set.scala
Returns true
if the given element is in the set. O(log n)
Returns true
if the given element is in the set. O(log n)
- Source:
- Set.scala
Return a set that has any elements appearing in the removals set removed O(n log n)
Return a set that has any elements appearing in the removals set removed O(n log n)
- Source:
- Set.scala
Find the minimum element matching the given predicate. Returns None if there is no element matching the predicate. O(log n)
Find the minimum element matching the given predicate. Returns None if there is no element matching the predicate. O(log n)
- Source:
- Set.scala
fold the elements together from min to max, using the passed seed, and accumulator function. O(n)
fold the elements together from min to max, using the passed seed, and accumulator function. O(n)
- Source:
- Set.scala
fold the elements together from min to max, using the passed seed, and accumulator function. O(n)
fold the elements together from min to max, using the passed seed, and accumulator function. O(n)
- Source:
- Set.scala
Applies a function to each element, in ascending order O(n)
Applies a function to each element, in ascending order O(n)
- Source:
- Set.scala
Return a set containing the intersection of elements with this set and the given set. O(n log n)
Return a set containing the intersection of elements with this set and the given set. O(n log n)
- Source:
- Set.scala
Returns None
if the set is empty, otherwise returns the maximum element. O(log n)
Returns None
if the set is empty, otherwise returns the maximum element. O(log n)
- Source:
- Set.scala
Returns None if the set is empty, otherwise returns the minimum element. O(log n)
Returns None if the set is empty, otherwise returns the minimum element. O(log n)
- Source:
- Set.scala
Return an Predicate with the same members as this set
Return an Predicate with the same members as this set
- Source:
- Set.scala
Return a set which does not contain the given element. O(log n)
Return a set which does not contain the given element. O(log n)
- Source:
- Set.scala
Converts this set into a Scala collection O(n)
Converts this set into a Scala collection O(n)
- Source:
- Set.scala
Return a Scala set containing the elements in the set O(n)
Return a Scala set containing the elements in the set O(n)
- Source:
- Set.scala
Return a set containing the union of elements with this set and the given set. O(n log n)
Return a set containing the union of elements with this set and the given set. O(n log n)
- Source:
- Set.scala