API
Collections
Function | Description |
---|---|
Returns the result of concatenating the values of Like Example
| |
Returns a promise that resolves to the result of concatenating the values of
Like Example
| |
Returns a promise that resolves to the result of concatenating the values of
Like Example
| |
Returns a Reducer that collects values to an Example
| |
Returns a Reducer that reduces key-value pairs using Example
| |
Returns a Reducer that concatenates values to a string where values
are separated by Joins like Use when composing reducers. Prefer join, joinAsync, and joinConcur for direct use on iterables. Example
| |
Returns a KeyedReducer that collects key-value pairs to a In the case of pairs with duplicate keys, the value of the last one wins. Example
| |
Returns a Reducer or OptionalReducer that reduces values to
an object or array of the same shape as Returns an OptionalReducer if at least one of the input reducers is an OptionalReducer. Otherwise, returns a Reducer. Example
| |
Returns a KeyedReducer that collects key-value pairs to an object. In the case of pairs with duplicate keys, the value of the last one wins. Example
| |
Returns a Reducer that collects values to a Example
| |
Returns a KeyedReducer that collects key-value pairs to a In the case of pairs with duplicate keys, the value of the last one wins. Example
| |
Returns a Reducer that collects objects to a Example
|
Core
Type alias, Variable, Function | Description |
---|---|
Represents a potentially lazy collection of values, each of type The collection can be iterated by invoking the concur iterable with an
Invoking the concur iterable returns a promise that resolves when It is like an event emitter that accepts only one event handler and returns a promise that resolves when all events have been emitted and handled. Example
| |
The callback invoked for each value of a ConcurIterable. | |
An iterable that contains zero values. Can be used as an iterable of any type. Like Example
| |
An async iterable that contains zero values. Can be used as an async iterable of any type. Like Example
| |
Returns an async iterable wrapper around Note that when passing a concur iterable the returned async iterable may have to buffer the values produced by the concur iterable because values may not be read from the async iterable as quickly as they are produced by the concur iterable. This is a fundamental problem because concur iterables are "push" based while async iterables are "pull" based, which creates backpressure. Example
| |
Returns a concur iterable wrapper around Example
| |
Returns a function that takes a single parameter and pipes it through the given functions. Example
| |
Returns a curried version of Example
| |
A concur iterable that contains zero values. Can be used as a concur iterable of any type. Like Example
| |
Returns an iterable equivalent, but not referentially equal, to | |
Returns an async iterable equivalent, but not referentially equal, to
| |
Returns an concur iterable equivalent, but not referentially equal, to
| |
Returns the result of piping Example
|
Filters
Function | Description |
---|---|
Returns an iterable containing the values of Example
| |
Returns an async iterable containing the values of Example
| |
Returns a concur iterable containing the values of Example
| |
Returns an iterable that contains the values of Like Example
| |
Returns an async iterable that contains the values of Like Example
| |
Returns a concur iterable that contains the values of Like Example
| |
Returns an iterable containing the values of Example
| |
Returns an async iterable containing the values of Example
| |
Returns a concur iterable containing the values of Example
| |
Returns an iterable containing the first value of Like Example
| |
Returns an async iterable containing the first value of Like Example
| |
Returns a concur iterable containing the first value of Like Example
| |
Returns an iterable containing the last value of Example
| |
Returns an async iterable containing the last value of Example
| |
Returns a concur iterable containing the last value of Example
| |
Returns an iterable containing the values of Example
| |
Returns an async iterable containing the values of Example
| |
Returns an iterable containing the values of When values are deduplicated, the value earlier in iteration order wins. Example
| |
Returns an async iterable containing the values of When values are deduplicated, the value earlier in iteration order wins. Example
| |
Returns a concur iterable containing the values of When values are deduplicated, the value earlier in iteration order wins. Example
| |
Returns a concur iterable containing the values of Example
|
Generators
Type alias, Function | Description |
---|---|
An iterable that yields integers in a range. Has a method for obtaining a new iterable that skips numbers in steps. | |
Returns an infinite iterable that repeatedly yields the values of Example
| |
Returns an infinite async iterable that repeatedly yields the values of
Example
| |
Returns an iterable containing the entries of This differs from | |
Returns an infinite iterable that yields Example
| |
Returns an infinite async iterable that yields Example
| |
Returns an iterable containing the keys of This differs from | |
Returns a RangeIterable that yields the integers between Throws if either Example
| |
Returns a RangeIterable that yields the integers between Throws if either Example
| |
Returns an infinite iterable that repeatedly yields Example
| |
Returns an iterable containing the values of This differs from |
Optionals
Type alias, Function | Description |
---|---|
An async iterable containing exactly zero or one values. | |
A concur iterable containing exactly zero or one values. | |
An iterable containing exactly zero or one values. | |
Returns the only value in Example
| |
Returns a promise that resolves to the only value in Example
| |
Returns a promise that resolves to the only value in Example
| |
Returns a pair of iterables. If Example
| |
Returns a promise that resolves to a pair of async iterables. If
Example
| |
Returns the only value in Example
| |
Returns a promise that resolves to the only value in Example
| |
Returns a promise that resolves to the only value in Example
|
Predicates
Function | Description |
---|---|
Returns Like Example
| |
Returns a promise that resolves to Like Example
| |
Returns a promise that resolves to Like Example
| |
Returns Like Example
| |
Returns a promise that resolves to Like Example
| |
Returns a promise that resolves to Like Example
| |
Returns Like Example
| |
Returns a promise that resolves to Like Example
| |
Returns a promise that resolves to Like Example
| |
Returns Example
| |
Returns a promise that resolves to Example
| |
Returns a promise that resolves to Example
|
Reducers
Type alias, Variable, Function | Description |
---|---|
An async reducer that reduces by combining pairs of values using function application. | |
An async keyed reducer that reduces by creating an initial accumulator using AsyncKeyedReducer.create and then adding key-value pairs to the accumulator values using AsyncKeyedReducer.add. The async keyed reducer is optionally able to combine pairs of accumulators using AsyncKeyedReducer.combine. The accumulator can be queried for values by key using AsyncKeyedReducer.get. | |
An async reducer that reduces by combining pairs of values using AsyncOptionalReducer.add and then tranforming the final value using AsyncOptionalReducer.finish. | |
An async reducer that reduces by creating an initial accumulator using AsyncReducer.create, then adding values to the accumulator values using AsyncReducer.add, and then tranforming the final accumulator using AsyncReducer.finish. The async reducer is optionally able to combine pairs of accumulators using AsyncReducer.combine. | |
A reducer that reduces by combining pairs of values using function application. | |
A keyed reducer that reduces by creating an initial accumulator using KeyedReducer.create and then adding key-value pairs to the accumulator values using KeyedReducer.add. The accumulator can be queried for values by key using KeyedReducer.get. | |
A reducer that reduces by combining pairs of values using OptionalReducer.add and then tranforming the final value using OptionalReducer.finish. | |
An async keyed reducer that reduces by creating an initial accumulator using RawAsyncKeyedReducer.create and then adding key-value pairs to the accumulator values using RawAsyncKeyedReducer.add. The async keyed reducer is optionally able to combine pairs of accumulators using RawAsyncKeyedReducer.combine. The accumulator can be queried for values by key using RawAsyncKeyedReducer.get. | |
An async reducer that reduces by combining pairs of values using RawAsyncOptionalReducerWithFinish.add and then tranforming the final value using RawAsyncOptionalReducerWithFinish.finish. | |
An async reducer that reduces by combining pairs of values using RawAsyncOptionalReducerWithoutFinish.add. | |
An async reducer that reduces by creating an initial accumulator using RawAsyncReducerWithFinish.create, then adding values to the accumulator values using RawAsyncReducerWithFinish.add, and then tranforming the final accumulator using RawAsyncReducerWithFinish.finish. The async reducer is optionally able to combine pairs of accumulators using RawAsyncReducerWithFinish.combine. | |
An async reducer that reduces by creating an initial accumulator using RawAsyncReducerWithoutFinish.create and then adding values to the accumulator values using RawAsyncReducerWithoutFinish.add. The async reducer is optionally able to combine pairs of accumulators using RawAsyncReducerWithoutFinish.combine. | |
A keyed reducer that reduces by creating an initial accumulator using RawKeyedReducer.create and then adding key-value pairs to the accumulator values using RawKeyedReducer.add. The accumulator can be queried for values by key using RawKeyedReducer.get. | |
A reducer that reduces by combining pairs of values using RawOptionalReducerWithFinish.add and then tranforming the final value using RawOptionalReducerWithFinish.finish. | |
A reducer that reduces by combining pairs of values using RawOptionalReducerWithoutFinish.add. | |
A reducer that reduces by creating an initial accumulator using RawReducerWithFinish.create, then adding values to the accumulator values using RawReducerWithFinish.add, and then tranforming the final accumulator using RawReducerWithFinish.finish. | |
A reducer that reduces by creating an initial accumulator using RawReducerWithoutFinish.create and then adding values to the accumulator values using RawReducerWithoutFinish.add. | |
A reducer that reduces by creating an initial accumulator using Reducer.create, then adding values to the accumulator values using Reducer.add, and then tranforming the final accumulator using Reducer.finish. | |
A unique value representing the lack of an entry for some key in a KeyedReducer or AsyncKeyedReducer. Keyed reducers use this instead of | |
Returns an AsyncReducer equivalent to | |
Returns a Reducer or OptionalReducer equivalent to | |
Returns a non-raw version of | |
Returns the result of reducing An initial accumulator is created using Reducer.create. Then each
value in If Like Example
| |
Returns the result of reducing the Informally, an initial accumulator is created using
AsyncReducer.create. Then each value in If Like Example
| |
Returns the result of reducing the Informally, an initial accumulator is created using
AsyncReducer.create. Then each value in If Like Example
|
Side effects
Function | Description |
---|---|
Returns an iterable equivalent to Example
| |
Returns an async iterable equivalent to Example
| |
Returns a concur iterable equivalent to Example
| |
Iterates through Example
| |
Iterates through Example
| |
Iterates through the Example
| |
Returns an iterable equivalent to Example
| |
Returns an async iterable equivalent to The result of applying Example
| |
Returns an concur iterable equivalent to The result of applying Example
| |
Applies Like Example
| |
Returns a promise that resolves when The result of applying Like Example
| |
Returns a promise that resolves when Like Example
|
Splices
Type alias, Function | Description |
---|---|
Options for window, windowAsync, and windowConcur. | |
Returns an iterable containing the value at the given WARNING: This function linearly iterates up to Throws if Example
| |
Returns an async iterable containing the value at the given WARNING: This function linearly iterates up to Throws if Example
| |
Returns a concur iterable containing the value at the given WARNING: This function linearly iterates up to Throws if Example
| |
Returns an iterable equivalent to The last array in the returned iterable will contain fewer than Throws if Example
| |
Returns an async iterable equivalent to The last array in the returned async iterable will contain fewer than Throws if Example
| |
Returns a concur iterable equivalent to The last array in the returned concur iterable will contain fewer than Throws if Example
| |
Returns an iterable that contains the values of each iterable in Like Example
| |
Returns an async iterable that contains the values of each iterable in
Like Example
| |
Returns a concur iterable that contains the values of each iterable in
Like Example
| |
Returns an iterable containing the values of If the Throws if Example
| |
Returns an async iterable containing the values of If the Throws if Example
| |
Returns a concur iterable containing the values of If the Throws if Example
| |
Returns an iterable containing the values of Example
| |
Returns an async iterable containing the values of Example
| |
Returns a concur iterable containing the values of Example
| |
Returns an iterable containing the first value of Example
| |
Returns an async iterable containing the first value of Example
| |
Returns a concur iterable containing the first value of Example
| |
Returns an iterable containing the last value of Example
| |
Returns an async iterable containing the last value of Example
| |
Returns a concur iterable containing the last value of Example
| |
Returns an iterable containing the values of If any part of the range between WARNING: This function linearly iterates up to Throws if either Example
| |
Returns an async iterable containing the values of If any part of the range between WARNING: This function linearly iterates up to Throws if either Example
| |
Returns a concur iterable containing the values of If any part of the range between WARNING: This function linearly iterates up to Throws if either Example
| |
Returns an iterable containing the first If the Throws if Example
| |
Returns an async iterable containing the first If the Throws if Example
| |
Returns a concur iterable containing the first If the Throws if Example
| |
Returns an iterable containing the values of Example
| |
Returns an async iterable containing the values of Example
| |
Returns a concur iterable containing the values of Example
| |
Returns an iterable containing a rolling window of the values of Throws if Example
| |
Returns an async iterable containing a rolling window of the values of
Throws if Example
| |
Returns a concur iterable containing a rolling window of the values of
Throws if Example
|
Statistics
Type alias, Function | Description |
---|---|
A function that compares two values of type A return value that awaits to:
| |
A function that compares two values of type A return value:
| |
An object containing a minimum and maximum value. | |
Returns the number of values in Like Example
| |
Returns a promise that resolves to the number of values in Like Example
| |
Returns a promise that resolves to the number of values in Like Example
| |
Returns an iterable containing a maximum value of Example
| |
Returns an async iterable containing a maximum value of Example
| |
Returns an iterable containing a maximum value of Example
| |
Returns an async iterable containing a maximum value of Example
| |
Returns a concur iterable containing a maximum value of Example
| |
Returns a concur iterable containing a maximum value of Example
| |
Returns an iterable containing a maximum value of Example
| |
Returns an async iterable containing a maximum value of Example
| |
Returns a concur iterable containing a maximum value of Example
| |
Returns the mean of the numbers of Returns Example
| |
Returns a promise that resolves to the mean of the numbers of
Returns a promise that resolves to Example
| |
Returns a promise that resolves to the mean of the numbers of
Returns a promise that resolves to Example
| |
Returns an iterable containing a minimum value of Example
| |
Returns an async iterable containing a minimum value of Example
| |
Returns an iterable containing a minimum value of Example
| |
Returns an async iterable containing a minimum value of Example
| |
Returns a concur iterable containing a minimum value of Example
| |
Returns a concur iterable containing a minimum value of Example
| |
Returns an iterable containing a MinMax value of Example
| |
Returns an async iterable containing a MinMax value of
Example
| |
Returns an iterable containing a MinMax value of Example
| |
Returns an async iterable containing a MinMax value of
Example
| |
Returns a concur iterable containing a MinMax value of
Example
| |
Returns a concur iterable containing a MinMax value of
Example
| |
Returns an iterable containing a MinMax value of Example
| |
Returns an async iterable containing a MinMax value of
Example
| |
Returns a concur iterable containing a MinMax value of
Example
| |
Returns an iterable containing a minimum value of Example
| |
Returns an async iterable containing a minimum value of Example
| |
Returns a concur iterable containing a minimum value of Example
| |
Returns the sum of the numbers of Example
| |
Returns a promise that resolves to the sum of the numbers of Example
| |
Returns a promise that resolves to the sum of the numbers of
Example
| |
Returns a Reducer that counts the number of values it receives. Use when composing reducers. Prefer count, countAsync, and countConcur for direct use on iterables. Example
| |
Returns an optional reducer that finds the maximum value of the values it receives. Use when composing reducers. Prefer max for direct use on iterables. Example
| |
Returns an optional reducer that finds the maximum value of the values it
receives based on the Use when composing reducers. Prefer maxBy for direct use on iterables. Example
| |
Returns an async optional reducer that finds the maximum value of the values
it receives based on the Use when composing reducers. Prefer maxByAsync and maxByConcur for direct use on iterables. | |
Returns an optional reducer that finds the maximum value of the values it
receives by comparing the numerical values of each value, as defined by Use when composing reducers. Prefer maxWith for direct use on iterables. Example
| |
Returns an async optional reducer that finds the maximum value of the values
it receives by comparing the numerical values of each value, as defined by
Use when composing reducers. Prefer maxWithAsync and maxWithConcur for direct use on iterables. | |
Returns a Reducer that computes the mean of the numbers it receives. Use when composing reducers. Prefer mean, meanAsync, and meanConcur for direct use on iterables. Example
| |
Returns an optional reducer that finds the minimum value of the values it receives. Use when composing reducers. Prefer min for direct use on iterables. Example
| |
Returns an optional reducer that finds the minimum value of the values it
receives based on the Use when composing reducers. Prefer minBy for direct use on iterables. Example
| |
Returns an async optional reducer that finds the minimum value of the values
it receives based on the Use when composing reducers. Prefer minByAsync and minByConcur for direct use on iterables. | |
Returns an optional reducer that finds the MinMax value of the values it receives. Use when composing reducers. Prefer minMax for direct use on iterables. Example
| |
Returns an optional reducer that finds the MinMax value of the values
it receives based on the Use when composing reducers. Prefer minMaxBy for direct use on iterables. Example
| |
Returns an async optional reducer that finds the MinMax value of the
values it receives based on the Use when composing reducers. Prefer minMaxByAsync and minMaxByConcur for direct use on iterables. | |
Returns an optional reducer that finds the MinMax value of the values
it receives by comparing the numerical values of each value, as defined by
Use when composing reducers. Prefer minMaxWith for direct use on iterables. Example
| |
Returns an async optional reducer that finds the MinMax value of the
values it receives by comparing the numerical values of each value, as
defined by Use when composing reducers. Prefer minMaxWithAsync and minMaxWithConcur for direct use on iterables. | |
Returns an optional reducer that finds the minimum value of the values it
receives by comparing the numerical values of each value, as defined by Use when composing reducers. Prefer minWith for direct use on iterables. Example
| |
Returns an async optional reducer that finds the minimum value of the values
it receives by comparing the numerical values of each value, as defined by
Use when composing reducers. Prefer minWithAsync and minWithConcur for direct use on iterables. | |
Returns a Reducer that sums the numbers it receives. Use when composing reducers. Prefer sum, sumAsync, and sumConcur for direct use on iterables. Example
|
Transforms
Function | Description |
---|---|
Returns an iterable containing the values of the iterables returned from
applying Like Example
| |
Returns an async iterable containing the values of the async iterables
returned, or resolving from promises returned, from applying Like Example
| |
Returns an concur iterable containing the values of the concur iterables
returned, or resolving from promises returned, from applying Like Example
| |
Returns an iterable that contains the values of each iterable in Like Example
| |
Returns an async iterable that contains the values of each iterable in
Like Example
| |
Returns a concur iterable that contains the values of each iterable in
Like Unlike concat and concatAsync, this function does not necessarily iterate over each iterable in sequence. Example
| |
Returns an iterable equivalent to Example
| |
Returns an async iterable equivalent to Example
| |
Returns a concur iterable equivalent to Example
| |
Returns an iterable containing the values of Like Example
| |
Returns an async iterable containing the values of Like Example
| |
Returns a concur iterable containing the values of Like Example
|