A class supporting filtered operations.
Computes the intersection between this bitset and another bitset by performing a bitwise "and".
Computes the intersection between this set and another set.
Computes the difference of this bitset and another bitset by performing a bitwise "and-not".
The difference of this set and another set.
This method is an alias for intersect
.
Adds element to bitset, returning a new set.
Creates a new immutable bitset with additional elements.
Creates a new immutable bitset by adding all elements contained in another collection to this immutable bitset.
[use case] Concatenates this immutable bitset with the elements of a traversable collection.
Concatenates this immutable bitset with the elements of a traversable collection.
Removes element from bitset, returning a new set@param elem the element to be removed
Creates a new immutable bitset from this immutable bitset with some elements removed.
Creates a new immutable bitset from this immutable bitset by removing all elements of another collection.
Applies a binary operator to a start value and all elements of this immutable bitset, going left to right.
Applies a binary operator to all elements of this immutable bitset and a start value, going right to left.
Computes the symmetric difference of this bitset and another bitset by performing a bitwise "exclusive-or".
Appends all elements of this immutable bitset to a string builder using start, end, and separator strings.
Appends all elements of this immutable bitset to a string builder.
Appends all elements of this immutable bitset to a string builder using a separator string.
(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.
[use case] Builds a new collection by applying a partial function to all elements of this immutable bitset on which the function is defined.
Builds a new collection by applying a partial function to all elements of this immutable bitset on which the function is defined.
The factory companion object that builds instances of class immutable.
(f compose g)(x) == f(g(x))
Tests if some element is contained in this set.
[use case] Copies elements of this immutable bitset to an array.
Copies elements of this immutable bitset to an array.
[use case] Copies values of this immutable bitset to an array.
Copies values of this immutable bitset to an array.
[use case] Copies values of this immutable bitset to an array.
Copies values of this immutable bitset to an array.
Copies all elements of this immutable bitset to a buffer.
Counts the number of elements in the immutable bitset which satisfy a predicate.
Computes the difference of this set and another set.
Selects all elements except first n ones.
Selects all elements except last n ones.
Drops longest prefix of elements that satisfy a predicate.
The empty set of the same type as this set
Compares this set with another object for equality.
Tests whether a predicate holds for some of the elements of this immutable bitset.
Selects all elements of this immutable bitset which satisfy a predicate.
Selects all elements of this immutable bitset which do not satisfy a predicate.
Finds the first element of the immutable bitset satisfying a predicate, if any.
None
if iterable is empty.
[use case] Builds a new collection by applying a function to all elements of this immutable bitset and concatenating the results.
Builds a new collection by applying a function to all elements of this immutable bitset and concatenating the results.
[use case] Converts this immutable bitset of traversable collections into a immutable bitset in which all element collections are concatenated.
Converts this immutable bitset of traversable collections into a immutable bitset in which all element collections are concatenated.
Applies a binary operator to a start value and all elements of this immutable bitset, going left to right.
Applies a binary operator to all elements of this immutable bitset and a start value, going right to left.
Tests whether a predicate holds for all elements of this immutable bitset.
[use case] Applies a function f
to all elements of this immutable bitset.
Applies a function f
to all elements of this immutable bitset.
Creates a new set of this kind from an array of longs
The generic builder that builds instances of immutable.
Partitions this immutable bitset into a map of immutable bitsets according to some discriminator function.
Partitions elements in fixed size immutable bitsets.
Tests whether this immutable bitset is known to have a finite size.
Returns a hash code value for the object.
Selects the first element of this immutable bitset.
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.
Tests whether this immutable bitset can be repeatedly traversed.
Creates a new iterator over all elements contained in this iterable object.
Selects the last element.
Optionally selects the last element.
[use case] Builds a new collection by applying a function to all elements of this immutable bitset.
Builds a new collection by applying a function to all elements of this immutable bitset.
[use case] Finds the largest element.
Finds the largest element.
[use case] Finds the smallest element.
Finds the smallest element.
Displays all elements of this immutable bitset in a string.
Displays all elements of this immutable bitset in a string using a separator string.
Displays all elements of this immutable bitset in a string using start, end, and separator strings.
Tests whether the immutable bitset is not empty.
Partitions this immutable bitset in two immutable bitsets according to a predicate.
[use case] Multiplies up the elements of this collection.
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 immutable bitset, going left to right.
Optionally applies a binary operator to all elements of this immutable bitset, going left to right.
Applies a binary operator to all elements of this immutable bitset, going right to left.
Optionally applies a binary operator to all elements of this immutable bitset, going right to left.
The collection of type immutable bitset underlying this TraversableLike
object.
[use case] Checks if the other iterable collection contains the same elements in the same order as this immutable bitset.
Checks if the other iterable collection contains the same elements in the same order as this immutable bitset.
Produces a collection containing cummulative results of applying the operator going left to right.
Produces a collection containing cummulative results of applying the operator going right to left.
The size of this immutable bitset.
Selects an interval of elements.
Groups elements in fixed size blocks by passing a "sliding window" over them (as opposed to partitioning them, as is done in grouped.
Splits this immutable bitset into a prefix/suffix pair according to a predicate.
Splits this immutable bitset into two at a given position.
Defines the prefix of this object's toString
representation.
Tests whether this bitset is a subset of another bitset.
Tests whether this set is a subset of another set.
[use case] Sums up the elements of this collection.
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.
[use case] Converts this immutable bitset to an array.
Converts this immutable bitset to an array.
Converts this immutable bitset to a mutable buffer.
Converts this immutable bitset to an indexed sequence.
Converts this immutable bitset to an iterable collection.
Returns an Iterator over the elements in this immutable bitset.
Converts this immutable bitset to a list.
Converts this immutable bitset to a map.
Converts this immutable bitset to a sequence.
Converts this immutable bitset to a set.
Converts this immutable bitset to a stream.
Converts this immutable bitset to a string.
Converts this immutable bitset to an unspecified Traversable.
Transposes this immutable bitset of traversable collections into a immutable bitset of immutable bitsets.
Computes the union between of set and another set.
Converts this immutable bitset of pairs into two collections of the first and second halfs of each pair.
Creates a non-strict view of a slice of this immutable bitset.
Creates a non-strict view of this immutable bitset.
Creates a non-strict filter of this immutable bitset.
[use case] Returns a immutable bitset formed from this immutable bitset and another iterable collection by combining corresponding elements in pairs.
Returns a immutable bitset formed from this immutable bitset and another iterable collection by combining corresponding elements in pairs.
[use case] Returns a immutable bitset formed from this immutable bitset and another iterable collection by combining corresponding elements in pairs.
Returns a immutable bitset formed from this immutable bitset and another iterable collection by combining corresponding elements in pairs.
[use case] Zips this immutable bitset with its indices.
Zips this immutable bitset with its indices.
Computes the union between this bitset and another bitset by performing a bitwise "or".
Computes the union between this set and another set.
A class for immutable bitsets.
Bitsets are sets of non-negative integers which are represented as variable-size arrays of bits packed into 64-bit words. The memory footprint of a bitset is determined by the largest number stored in it.
version
2.8
since
2.8
authors:
Martin Odersky