Creates an endless stream of values produced by getItem
. Function return value is not cached; it's invoked
separately to get each item.
Items type
Function that produces items.
Creates a steam of [key, value]
pairs from given object. Keys are retrieved with
Object.keys(),
which means prototype members are not included.
Input object type
Object to create [key, value]
-pairs stream from.
Creates an optional from given iterable. An empty iterable resolves to an empty optional; otherwise the optional resolves to the first item yielded by iterable, rest elements are discarded.
elements type.
Creates an optional which resolves to a value returned by getInput
if that value is not null
or undefined
,
or which resolves to empty otherwise.
Non-nullable input value type
Function which produces value or null
or undefined
Creates a stream of ascending numbers starting with from
up to bound
exclusively.
Start value inclusively
End value exclusively
Creates an endless stream of value
Value type
An item to repeat endlessly
Creates a stream from an iterable (for example, array, set etc). Streams created with this function never
modify input
; if you want the opposite use streamFromModifiable.
Items type
Input to create the stream from. Can be array, set, or any other iterable, including user-defined,
as long as it correctly implements iteration protocol.
If you implement your own iterable please note: a) next()
is not expected to take any arguments, and b)
value
returned with {done: true}
is discarded.
Creates a stream from an array but, unlike stream, allows input
modifications. That's useful for operations
like Stream.sortBy and Stream.shuffle which otherwise copy input to the new array.
Elements type
array allowed for modifications to create stream from
Creates a stream from given elements. If you provide input as an array using Function.prototype.apply(), such an array is treated as modifiable, just like in streamFromModifiable.
Elements type
Elements to create a stream from
Generated using TypeDoc
Creates a stream of
'a'
,'b'
,'c'
, ...,'z'
strings.