scala.collection.immutable.Stream
A class supporting filtered operations
Create a new stream which contains all elements of this stream
followed by all elements of Iterator that'
Create a new stream which contains all elements of this stream
followed by all elements of Traversable that'
Prepends an element to this sequence
Applies a binary operator to a start value and all elements of this sequence, going left to right
Appends an element to this sequence
Applies a binary operator to all elements of this sequence and a start value, going right to left
Write all defined elements of this iterable into given string builder
Appends all elements of this sequence to a string builder
Appends all elements of this sequence to a string builder using a separator string
Composes this partial function with a transformation function that gets applied to results of this partial function
The stream resulting from the concatenation of this stream with the argument stream
Selects an element by its index in the sequence
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 LinearSeq
(f compose g)(x) == f(g(x))
Tests whether this sequence contains a given value as an element
Tests whether this sequence contains a given sequence as a slice
Copies elements of this sequence to an array
Copies elements of this sequence to an array
Copies elements of this sequence to an array
Copies all elements of this sequence to a buffer
Tests whether every element of this sequence relates to the corresponding element of another sequence by satisfying a test predicate
Counts the number of elements in the sequence which satisfy a predicate
Computes the multiset difference between this sequence and another sequence
Selects all elements except first n ones
Selects all elements except first n ones
Returns the longest suffix of this iterable whose first element
does not satisfy the predicate p
Tests whether this sequence ends with the given sequence
The equality method defined in AnyRef
Tests whether every element of this 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 sequence
Selects all elements of this sequence which do not satisfy a predicate
Finds the first element of the sequence satisfying a predicate, if any
Returns index of the first element satisying a predicate, or -1
Returns index of the last element satisying a predicate, or -1
None
if iterable is empty
Converts this sequence of traversable collections into a sequence in which all element collections are concatenated
Applies a binary operator to all elements of this sequence and a start value, going right to left
Tests whether a predicate holds for all elements of this sequence
Force evaluation of the whole stream and return it
The generic builder that builds instances of LinearSeq at arbitrary element types
Partitions this sequence into a map of sequences according to some discriminator function
Tests whether this sequence is known to have a finite size
Hashcodes for LinearSeq produce a value from the hashcodes of all the elements of the sequence
The first element of this stream
Optionally selects the first element
Finds index of first occurrence of some value in this sequence after or at some start index
Finds index of first occurrence of some value in this sequence
Finds first index after or at a start index where this sequence contains a given sequence as a slice
Finds first index where this 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
The stream without its last element
Computes the multiset intersection between this sequence and another sequence
Tests whether this sequence contains given index
is this stream empty? @return true
if the sequence contain no elements, false
otherwise
Creates a new iterator over all elements contained in this iterable object
Selects the last element
Finds index of last occurrence of some value in this sequence before or at a given end index
Finds index of last occurrence of some value in this sequence
Finds last index before or at a given end index where this sequence contains a given sequence as a slice
Finds last index where this 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 sequence
Compares the length of this sequence to a test value
Turns this partial function into an plain function returning an Option
result
Finds the largest element
Finds the smallest element
Displays all elements of this sequence in a string
Displays all elements of this sequence in a string using a separator string
Displays all elements of this sequence in a string using start, end, and separator strings
Tests whether the sequence is not empty
Composes this partial function with a fallback partial function which gets applied where this partial function is not defined
Returns a new sequence of given length containing the elements of this sequence followed by zero or more occurrences of given elements
Builds a new collection by applying a partial function to all elements of this sequence on which the function is defined
Returns all the elements of this stream that satisfy the
predicate p
Produces a new sequence where a slice of elements in this sequence is replaced by another sequence
Returns the length of the longest prefix whose elements all satisfy some preficate
Prints elements of this stream one by one, separated by sep
Prints elements of this stream one by one, separated by commas
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 sequence, going left to right
Optionally applies a binary operator to all elements of this sequence, going left to right
Applies a binary operator to all elements of this sequence, going right to left
Optionally applies a binary operator to all elements of this sequence, going right to left
Builds a new stream from this stream in which any duplicates (wrt to ==) removed
The collection of type sequence underlying this TraversableLike
object
A list consisting of all elements of this list in reverse order
An iterator yielding elements in reversed order
Builds a new collection by applying a function to all elements of this sequence and collecting the results in reversed order
Checks if the other iterable collection contains the same elements in the same order as this sequence
Computes length of longest segment whose elements all satisfy some preficate
The size of this sequence, equivalent to length
A substream starting at index from
and extending up to (but not including) index until
Sorts this LinearSeq according to the Ordering which results from transforming an implicitly given Ordering with a transformation function
Sorts this sequence according to an Ordering
Sorts this sequence according to a comparison function
Spits this sequence into a prefix/suffix pair according to a predicate
Splits this sequence into two at a given position
Tests whether this sequence starts with the given sequence
Tests whether this sequence contains the given sequence at a given index
Defines the prefix of this object's toString
representation as Stream
Sums up the elements of this collection
A stream consisting of the remaining elements of this stream after the first one
Is the tail of this stream defined?
Returns the n
first elements of this stream, or else the whole
stream, if it has less than n
elements
Returns the rightmost n
elements from this iterable
Returns the longest prefix of this stream whose elements satisfy
the predicate p
Converts this sequence to an array
Converts this sequence to an indexed sequence
Converts this sequence to an iterable collection
Converts this sequence to a list
Converts this sequence to a sequence
Converts this sequence to a set
Converts this sequence to a stream
Converts this sequence to a string
Transposes this sequence of traversable collections into
Produces a new sequence which contains all elements of this sequence and also all elements of a given sequence
Converts this sequence of pairs into two collections of the first and second halfs of each pair
A copy of this sequence with one single replaced element
Creates a non-strict view of a slice of this sequence
Creates a non-strict view of this sequence
Creates a non-strict filter of this sequence
Returns a sequence formed from this sequence and another iterable collection by combining corresponding elements in pairs
Zips this iterable with its indices