Returns a lazy Iterable that wraps each element of the original
collection into an IndexedValue containing the index of that element and
the element itself.
Returns a single Iterable of all elements yielded from results of
transform function being invoked on each element and its index in the
original collection.
Returns the first non-null value produced by transform function being
applied to elements of this collection in iteration order, or throws
NoSuchElementException if no non-null value was produced.
Returns the first non-null value produced by transform function being
applied to elements of this collection in iteration order, or null if
no non-null value was produced.
Returns a single Iterable of all elements yielded from results of
transform function being invoked on each element and its index in the
original collection.
foldIndexed<T>(TinitialValue, Tcombine(intindex, TpreviousValue, Eelement))
→ T
Accumulates value starting with initialValue and applying operation from
left to right to current accumulator value and each element with its index
in the original collection.
Groups values returned by the valueTransform function applied to each
element of the original collection by the key returned by the given
keySelector function applied to the element and returns a Map where
each group key is associated with a Iterable of corresponding values.
Groups elements of the original collection by the key returned by the
given keySelector function applied to each element and returns a Map
where each group key is associated with a Iterable of corresponding
elements.
Returns an Iterable containing only the non-null results of applying the
given transform function to each element and its index in the original
collection.
Returns the largest value according to the provided comparator among all
values produced by selector function applied to each element in the
collection.
Returns the largest value according to the provided comparator among all
values produced by selector function applied to each element in the
collection or null if there are no elements.
Returns the smallest value according to the provided comparator among
all values produced by selector function applied to each element in the
collection.
Returns the smallest value according to the provided comparator among
all values produced by selector function applied to each element in the
collection or null if there are no elements.
Splits the original collection into Pair of iterables, where first
Iterable contains elements for which test yielded true, while second
Iterable contains elements for which test yielded false.
Accumulates value starting with the first element and applying combine
function from left to right to current accumulator value and each element
with its index in the original collection.
Accumulates value starting with the first element and applying combine
function from left to right to current accumulator value and each element
with its index in the original collection.
Returns a Iterable containing successive accumulation values generated
by applying combine function from left to right to each element and
current accumulator value that starts with initialValue.
Returns a Iterable containing successive accumulation values generated
by applying combine function from left to right to each element and
current accumulator value that starts with initialValue.
Returns a Iterable containing successive accumulation values generated
by applying combine function from left to right to each element and
current accumulator value that starts with the first element of this
collection.
Returns a Iterable containing successive accumulation values generated
by applying combine function from left to right to each element, its
index in the original collection and current accumulator value that starts
with the first element of this collection.
Returns a Iterable of results of applying the given transform function
to an each Iterable representing a view over the window of the given
size sliding along this collection with the given step.
Returns a Iterable of pairs built from the elements of this collection
and other collection with the same index. The returned Iterable has
length of the shortest collection.
Returns a Iterable of values built from the elements of this collection
and the other collection with the same index using the provided
transform function applied to each pair of elements. The returned
Iterable has length of the shortest collection.