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)
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)
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)
Return a Set that has any elements appearing in the removals set removed O(n log n)
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)
Returns true
if the given element is in the Set.
Returns true
if the given element is in the Set.
O(log n)
Return a Set that has any elements appearing in the removals set removed O(n log n)
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 predicte. O(log n)
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)
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)
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)
Return an ISet (intentional set) with the same members as this set
Map a function on all values of the set
Retruns None
if the Set is empty, otherwise returns the maximum
element.
Retruns None
if the Set is empty, otherwise returns the maximum
element.
O(log n)
Retruns None if the Set is empty, otherwise returns the minumum element.
Retruns None if the Set is empty, otherwise returns the minumum element. O(log n)
Return a Set which does not contain the given element.
Return a Set which does not contain the given element. O(log n)
Return the sorted list of elements.
Return the sorted list of elements. O(n)
Return a scala set containing the elments in the Set O(n)
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)
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)
An immutable, ordered, extesntional Set
This datastructure maintains balance using the [AVL](https://en.wikipedia.org/wiki/AVL_tree) algorithm.