An immutable, ordered, extensional set
This data-structure maintains balance using the [AVL](https://en.wikipedia.org/wiki/AVL_tree) algorithm.
Attributes
Members list
Value members
Concrete methods
Return a set containing the intersection of elements with this set and the given set.
Return a set containing the intersection of elements with this set and the given set. O(n log n)
Attributes
- Source
- Set.scala
Add's the given element to the set if it is not already present.
Add's the given element to the set if it is not already present. O(log n)
Attributes
- Source
- Set.scala
Return a set containing the union of elements with this set and the given set.
Return a set containing the union of elements with this set and the given set. O(n log n)
Attributes
- 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)
Attributes
- Source
- Set.scala
Add's the given element to the set if it is not already present.
Add's the given element to the set if it is not already present. O(log n)
Attributes
- Source
- Set.scala
Returns true
if the given element is in the set.
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)
Attributes
- Source
- Set.scala
Find the minimum element matching the given predicate.
Find the minimum element matching the given predicate. Returns None if there is no element matching the predicate. O(log n)
Attributes
- Source
- Set.scala
Map a function on all values of the set
fold the elements together from min to max, using the passed seed, and accumulator function.
fold the elements together from min to max, using the passed seed, and accumulator function. O(n)
Attributes
- Source
- Set.scala
fold the elements together from min to max, using the passed seed, and accumulator function.
fold the elements together from min to max, using the passed seed, and accumulator function. O(n)
Attributes
- Source
- Set.scala
Applies a function to each element, in ascending order O(n)
Return a set containing the intersection of elements with this set and the given set.
Return a set containing the intersection of elements with this set and the given set. O(n log n)
Attributes
- Source
- Set.scala
Map a function on all values of the set
Returns None
if the set is empty, otherwise returns the maximum element.
Returns None
if the set is empty, otherwise returns the maximum element. O(log n)
Attributes
- Source
- Set.scala
Returns None if the set is empty, otherwise returns the minimum element.
Returns None if the set is empty, otherwise returns the minimum element. O(log n)
Attributes
- Source
- Set.scala
Return an Predicate with the same members as this set
Return a set which does not contain the given element.
Converts this set into a Scala collection O(n)
Attributes
- Source
- Set.scala
Return the sorted list of elements.
Return a Scala set containing the elements in the set O(n)
Returns a string representation of the object.
Returns a string representation of the object.
The default representation is platform dependent.
Attributes
- Returns
-
a string representation of the object.
- Definition Classes
-
Any
- Source
- Set.scala
Return a set containing the union of elements with this set and the given set.
Return a set containing the union of elements with this set and the given set. O(n log n)
Attributes
- Source
- Set.scala