A class supporting filtered operations.
[use case] Concatenates this immutable sequence with the elements of a traversable collection.
Concatenates this immutable sequence with the elements of a traversable collection.
[use case] Prepends an element to this immutable sequence
Prepends an element to this immutable sequence
Applies a binary operator to a start value and all elements of this immutable sequence, going left to right.
[use case] Appends an element to this immutable sequence
Appends an element to this immutable sequence
Applies a binary operator to all elements of this immutable sequence and a start value, going right to left.
Projection function, which returns elements of this
sequence based on the string that
.
Projection function, which returns elements of this
sequence and of all its subsequences, based on
the string that
.
Appends all elements of this immutable sequence to a string builder.
Appends all elements of this immutable sequence to a string builder using a separator string.
Appends all elements of this immutable sequence to a string builder using start, end, and separator strings.
Composes this partial function with a transformation function that gets applied to results of this partial function.
Selects an element by its index in the immutable sequence.
We insist we're only equal to other xml.
[use case] Builds a new collection by applying a partial function to all elements of this immutable sequence on which the function is defined.
Builds a new collection by applying a partial function to all elements of this immutable sequence on which the function is defined.
The factory companion object that builds instances of class immutable.
(f compose g)(x) == f(g(x))
Tests whether this immutable sequence contains a given value as an element.
Tests whether this immutable sequence contains a given sequence as a slice.
[use case] Copies elements of this immutable sequence to an array.
Copies elements of this immutable sequence to an array.
[use case] Copies values of this immutable sequence to an array.
Copies values of this immutable sequence to an array.
[use case] Copies values of this immutable sequence to an array.
Copies values of this immutable sequence to an array.
Copies all elements of this immutable sequence to a buffer.
Tests whether every element of this immutable sequence relates to the corresponding element of another sequence by satisfying a test predicate.
Counts the number of elements in the immutable sequence which satisfy a predicate.
[use case] Computes the multiset difference between this immutable sequence and another sequence.
Computes the multiset difference between this immutable sequence and another sequence.
Builds a new immutable sequence from this immutable sequence without any duplicate elements.
Selects all elements except first n ones.
Selects all elements except last n ones.
Drops longest prefix of elements that satisfy a predicate.
Tests whether this immutable sequence ends with the given sequence.
The equality method defined in AnyRef
.
Tests whether every element of this immutable sequence relates to the corresponding element of another sequence by satisfying a test predicate.
Tests whether a predicate holds for some of the elements of this immutable sequence.
Selects all elements of this immutable sequence which satisfy a predicate.
Selects all elements of this immutable sequence which do not satisfy a predicate.
Finds the first element of the immutable sequence satisfying a predicate, if any.
Returns index of the first element satisfying a predicate, or -1
.
Returns index of the last element satisfying a predicate, or -1.
None
if iterable is empty.
[use case] Builds a new collection by applying a function to all elements of this immutable sequence and concatenating the results.
Builds a new collection by applying a function to all elements of this immutable sequence and concatenating the results.
[use case] Converts this immutable sequence of traversable collections into a immutable sequence in which all element collections are concatenated.
Converts this immutable sequence of traversable collections into a immutable sequence in which all element collections are concatenated.
Applies a binary operator to a start value and all elements of this immutable sequence, going left to right.
Applies a binary operator to all elements of this immutable sequence and a start value, going right to left.
Tests whether a predicate holds for all elements of this immutable sequence.
[use case] Applies a function f
to all elements of this immutable sequence.
Applies a function f
to all elements of this immutable sequence.
The generic builder that builds instances of immutable.
Partitions this immutable sequence into a map of immutable sequences according to some discriminator function.
Partitions elements in fixed size immutable sequences.
Tests whether this immutable sequence is known to have a finite size.
It's be nice to make these final, but there are probably people out there subclassing the XML types, especially when it comes to equals.
Selects the first element of this immutable sequence.
Optionally selects the first element.
[use case] Finds index of first occurrence of some value in this immutable sequence after or at some start index.
Finds index of first occurrence of some value in this immutable sequence after or at some start index.
[use case] Finds index of first occurrence of some value in this immutable sequence.
Finds index of first occurrence of some value in this immutable sequence.
Finds first index after or at a start index where this immutable sequence contains a given sequence as a slice.
Finds first index where this immutable sequence contains a given sequence as a slice.
Finds index of the first element satisfying some predicate after or at some start index.
Finds index of first element satisfying some predicate.
Produces the range of all indices of this sequence.
Selects all elements except the last.
[use case] Computes the multiset intersection between this immutable sequence and another sequence.
Computes the multiset intersection between this immutable sequence and another sequence.
Tests whether this immutable sequence contains given index.
Tests whether this immutable sequence is empty.
Tests whether this immutable sequence can be repeatedly traversed.
Creates a new iterator over all elements contained in this iterable object.
Selects the last element.
[use case] Finds index of last occurrence of some value in this immutable sequence before or at a given end index.
Finds index of last occurrence of some value in this immutable sequence before or at a given end index.
[use case] Finds index of last occurrence of some value in this immutable sequence.
Finds index of last occurrence of some value in this immutable sequence.
Finds last index before or at a given end index where this immutable sequence contains a given sequence as a slice.
Finds last index where this immutable sequence contains a given sequence as a slice.
Finds index of last element satisfying some predicate before or at given end index.
Finds index of last element satisfying some predicate.
Optionally selects the last element.
The length of the immutable sequence.
Compares the length of this immutable sequence to a test value.
Turns this partial function into an plain function returning an Option
result.
[use case] Builds a new collection by applying a function to all elements of this immutable sequence.
Builds a new collection by applying a function to all elements of this immutable sequence.
[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 sequence in a string.
Displays all elements of this immutable sequence in a string using a separator string.
Displays all elements of this immutable sequence in a string using start, end, and separator strings.
Tests whether the immutable sequence is not empty.
Composes this partial function with a fallback partial function which gets applied where this partial function is not defined.
[use case] Appends an element value to this immutable sequence until a given target length is reached.
Appends an element value to this immutable sequence until a given target length is reached.
Partitions this immutable sequence in two immutable sequences according to a predicate.
[use case] Produces a new immutable sequence where a slice of elements in this immutable sequence is replaced by another sequence.
Produces a new immutable sequence where a slice of elements in this immutable sequence is replaced by another sequence.
Returns the length of the longest prefix whose elements all satisfy some 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 sequence, going left to right.
Optionally applies a binary operator to all elements of this immutable sequence, going left to right.
Applies a binary operator to all elements of this immutable sequence, going right to left.
Optionally applies a binary operator to all elements of this immutable sequence, going right to left.
The collection of type immutable sequence underlying this TraversableLike
object.
Returns new immutable sequence wih elements in reversed order.
An iterator yielding elements in reversed order.
[use case] Builds a new collection by applying a function to all elements of this immutable sequence and collecting the results in reversed order.
Builds a new collection by applying a function to all elements of this immutable sequence and collecting the results in reversed order.
[use case] Checks if the other iterable collection contains the same elements in the same order as this immutable sequence.
Checks if the other iterable collection contains the same elements in the same order as this immutable sequence.
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.
Computes length of longest segment whose elements all satisfy some predicate.
The size of this immutable sequence, equivalent to length
.
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.
Sorts this immutable.
Sorts this immutable sequence according to a comparison function.
Sorts this immutable sequence according to an Ordering.
Splits this immutable sequence into a prefix/suffix pair according to a predicate.
Splits this immutable sequence into two at a given position.
Tests whether this immutable sequence starts with the given sequence.
Tests whether this immutable sequence contains the given sequence at a given index.
Defines the prefix of this object's toString
representation.
[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 sequence to an array.
Converts this immutable sequence to an array.
Converts this immutable sequence to a mutable buffer.
Converts this immutable sequence to an indexed sequence.
Converts this immutable sequence to an iterable collection.
Returns an Iterator over the elements in this immutable sequence.
Converts this immutable sequence to a list.
Converts this immutable sequence to a map.
Converts this immutable sequence to a sequence.
Converts this immutable sequence to a set.
Converts this immutable sequence to a stream.
Converts this immutable sequence to a string.
Converts this immutable sequence to an unspecified Traversable.
Transposes this immutable sequence of traversable collections into a immutable sequence of immutable sequences.
[use case] Produces a new sequence which contains all elements of this immutable sequence and also all elements of a given sequence.
Produces a new sequence which contains all elements of this immutable sequence and also all elements of a given sequence.
Converts this immutable sequence of pairs into two collections of the first and second halfs of each pair.
[use case] A copy of this immutable sequence with one single replaced element.
A copy of this immutable sequence with one single replaced element.
Creates a non-strict view of a slice of this immutable sequence.
Creates a non-strict view of this immutable sequence.
Creates a non-strict filter of this immutable sequence.
[use case] Returns a immutable sequence formed from this immutable sequence and another iterable collection by combining corresponding elements in pairs.
Returns a immutable sequence formed from this immutable sequence and another iterable collection by combining corresponding elements in pairs.
[use case] Returns a immutable sequence formed from this immutable sequence and another iterable collection by combining corresponding elements in pairs.
Returns a immutable sequence formed from this immutable sequence and another iterable collection by combining corresponding elements in pairs.
[use case] Zips this immutable sequence with its indices.
Zips this immutable sequence with its indices.
This class implements a wrapper around
Seq[Node]
that adds XPath and comprehension methods.version
1.0
authors:
Burak Emir