Iterable
Index
Accessor
size
Returns the size of iterable
Type parameters
- Value
Constructor
create
Iterable constructor
Type parameters
- Value
empty
Returns an iterable that have no value
Type parameters
- Value = never
generate
Generate an iterable of
length
usingmapFn(index)
on each elementType parameters
- Value
of
Create an iterable of given
values
Type parameters
- Value
Predicate
some
Tests whether any element in the iterable pass the test implemented by the provided function.
Type parameters
- Value
Type
hasInstance
Returns
true
ifanyValue
is a valid Iterable
Other
every
Tests whether all elements in the iterable pass the test implemented by the provided function.
Type parameters
- Value
filter
Return a new iterable that filters values using
predicate
Type parameters
- Value
find
Returns the first element for which the given function returns true, otherwise undefined.
Type parameters
- Value
flatMap
Return a new Iterable which applies
mapFn
and concatenate the result to the previousType parameters
- ValueFrom
- ValueTo
map
Return a new Iterable which applies
mapFn
to each valuesType parameters
- ValueFrom
- ValueTo
reduce
Reduce an
initialValue
to thereducer
functionType parameters
- Value
- Return
zip
Combine two iterables into an iterable of couple of their values. The result has the size of the smallest iterable used.
Type parameters
- L
- R
A collection of functions to manipulate Iterable