A class supporting filtered operations
Computes the intersection between this set and another set
The difference of this set and another set
This method is an alias for intersect
Creates a new set with an additional element, unless the element is already present
Creates a new set with additional elements
Creates a new set by adding all elements produced by an iterator to this set
Creates a new set by adding all elements contained in another collection to this set
Concatenates this set with the elements of an iterator
Concatenates this set with the elements of a traversable collection
Creates a new set with a given element removed from this set
Creates a new set from this set with some elements removed
Creates a new set from this set by removing all elements produced by an iterator
Creates a new set from this set by removing all elements of another collection
Applies a binary operator to a start value and all elements of this set, going left to right
Applies a binary operator to all elements of this set and a start value, going right to left
Appends all elements of this set to a string builder
Appends all elements of this set to a string builder using a separator string
Appends all elements of this set to a string builder using start, end, and separator strings
(f andThen g)(x) == g(f(x))
Tests if some element is contained in this set
Method called from equality methods, so that user-defined subclasses can refuse to be equal to other collections of the same kind
The factory companion object that builds instances of class Set
(f compose g)(x) == f(g(x))
Tests if some element is contained in this set
Copies elements of this set to an array
Copies elements of this set to an array
Copies elements of this set to an array
Copies all elements of this set to a buffer
Counts the number of elements in the set which satisfy a predicate
Computes the difference of this set and another set
Selects all elements except first n ones
Selects all elements except first n ones
Drops longest prefix of elements that satisfy a predicate
Compares this set with another object for equality
Tests whether a predicate holds for some of the elements of this set
Selects all elements of this set which satisfy a predicate
Selects all elements of this set which do not satisfy a predicate
Finds the first element of the set satisfying a predicate, if any
None
if iterable is empty
Builds a new collection by applying a function to all elements of this set and concatenating the results
Converts this set of traversable collections into a set in which all element collections are concatenated
Applies a binary operator to a start value and all elements of this set, going left to right
Applies a binary operator to all elements of this set and a start value, going right to left
Tests whether a predicate holds for all elements of this set
Applies a function f
to all elements of this set
The generic builder that builds instances of Set at arbitrary element types
Partitions this set into a map of sets according to some discriminator function
Tests whether this set is known to have a finite size
Returns a hash code value for the object
Selects the first element of this set
Optionally selects the first element
Selects all elements except the last
Computes the intersection between this set and another set
Tests if this set is empty
Creates a new iterator over all elements contained in this iterable object
Selects the last element
Optionally selects the last element
Builds a new collection by applying a function to all elements of this set
Finds the largest element
Finds the smallest element
Displays all elements of this set in a string
Displays all elements of this set in a string using a separator string
Displays all elements of this set in a string using start, end, and separator strings
Tests whether the set is not empty
Builds a new collection by applying a partial function to all elements of this set on which the function is defined
Partitions this set in two sets according to a predicate
Multiplies up the elements of this collection
returns a projection that can be used to call non-strict filter
,map
, and flatMap
methods that build projections
of the collection
Applies a binary operator to all elements of this set, going left to right
Optionally applies a binary operator to all elements of this set, going left to right
Applies a binary operator to all elements of this set, going right to left
Optionally applies a binary operator to all elements of this set, going right to left
The collection of type set underlying this TraversableLike
object
Checks if the other iterable collection contains the same elements in the same order as this set
The size of this set
Selects an interval of elements
Spits this set into a prefix/suffix pair according to a predicate
Splits this set into two at a given position
Defines the prefix of this object's toString
representation
Tests whether this set is a subset of another set
Sums up the elements of this collection
Selects all elements except the first
Selects first n elements
Selects last n elements
Takes longest prefix of elements that satisfy a predicate
Converts this set to an array
Converts this set to an indexed sequence
Converts this set to an iterable collection
Converts this set to a list
Converts this set to a sequence
Converts this set to a set
Converts this set to a stream
Converts this set to a string
Transposes this set of traversable collections into
Computes the union between of set and another set
Converts this set of pairs into two collections of the first and second halfs of each pair
Creates a non-strict view of a slice of this set
Creates a non-strict view of this set
Creates a non-strict filter of this set
Returns a set formed from this set and another iterable collection by combining corresponding elements in pairs
Returns a set formed from this set and another iterable collection by combining corresponding elements in pairs
Zips this set with its indices
Computes the union between this set and another set
A class for sets of values Iterating through this set will yield values in increasing order of their ids.