MutHashSet
Definitions
Adds the element x to the mutable set s.
def addAll(m: m[t], s: MutHashSet[t, r]): Unit \ r + Aef[m] with Eq[t], Hash[t], Foldable[m]§ SourceAdds all elements in the collection m to the mutable set s.
def copy(rc: Region[r1], s: MutHashSet[t, r]): MutHashSet[t, r1] \ r + r1 with Eq[t], Hash[t]§ SourceReturns a shallow copy of the mutable set s.
Returns the number of elements in the mutable set s that satisfy the predicate function f.
Returns a new empty set with the given capacity.
The capacity is rounded up to the minimum capacity.
Returns true if and only if at least one element in the mutable set s satisfies the predicate function f.
Returns false if s is the empty set.
Alias for findLeft.
The function f must be pure.
Optionally returns the first element of the mutable set s that satisfies the predicate function f when searching from left to right.
The function f must be pure.
Optionally returns the first element of the mutable set s that satisfies the predicate function f when searching from right to left.
The function f must be pure.
Returns the first element that was inserted into the mutable set s.
Returns None if the set is empty.
Applies f to a start value i and all elements in the mutable set s going from left to right.
That is, the result is of the form: f(...f(f(i, x1), x2)..., xn).
Returns the result of mapping each element and combining the results.
Applies f to a start value z and all elements in the mutable set s going from right to left.
That is, the result is of the form: f(x1, ...f(xn-1, f(xn, z))...).
Returns true if and only if all elements in the mutable set s satisfy the predicate function f.
Returns true if s is the empty set.
Applies f to every element of the mutable hash set s.
Applies f to every element of the mutable hash set s along with that element's index.
Returns an iterator over s.
Returns the concatenation of the string representation
of each element in s with sep inserted between each element.
Returns the concatenation of the string representation
of each element in s according to f with sep inserted between each element.
Returns the last element that was inserted into the mutable set s.
Returns None if the set is empty.
Returns true if and only if x is a member of the mutable set s.
Removes all elements from the mutable set s that do not satisfy the predicate function f.
The function f must be pure.
Removes the element x from the mutable set s.
def removeAll(m: m[t], s: MutHashSet[t, r]): Unit \ r + Aef[m] with Eq[t], Hash[t], Foldable[m]§ SourceRemoves all elements in the collection m from the mutable set s.
def replace(src: { src = t }, dst: { dst = t }, s: MutHashSet[t, r]): Unit \ r with Eq[t], Hash[t]§ SourceReplaces the element src with the element dst if src is in the mutable set s.
The mutable set s is unchanged if the element src is not in it.
def retainAll(m: m[t], s: MutHashSet[t, r]): Unit \ r + Aef[m] with Eq[t], Hash[t], Foldable[m]§ SourceRemoves all elements from the mutable set s that are not in collection m.
Returns a new set with the element x.
Returns the mutable set s as an array.
Returns the association set s as a map.
If s contains multiple mappings with the same key, toMap does not
make any guarantees about which mapping will be in the resulting map.
Returns the mutable set s as an immutable set.
Returns a string representation of the given mutable hash set s.