API
Collections
Function | Description |
---|---|
Returns the string concatenation of the values of Like Example
Since v0.0.1 | |
Returns a promise that resolves to the string concatenation of the values of
Like Example
Since v0.0.1 | |
Returns a promise that resolves to the string concatenation of the values of
Like WARNING: The iteration order of concur iterables is not deterministic, so the values will be concatenated in an arbitrary order. Example
Since v0.0.2 | |
Returns a Reducer that collects values to an Example
Since v0.0.1 | |
Returns a Reducer that reduces key-value pairs using Example
Since v2.0.0 | |
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
Since v2.0.0 | |
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
Since v0.0.1 | |
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
Since v2.0.0 | |
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
Since v0.0.1 | |
Returns a Reducer that collects values to a Example
Since v0.0.1 | |
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
Since v0.0.1 | |
Returns a Reducer that collects objects to a Example
Since v0.0.1 |
Core
Type alias, Variable, Function | Description |
---|---|
Represents a 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 A concur iterable is effectively a cold push-based observable backed by some asynchronous operations. Example
Since v0.0.2 | |
The callback invoked for each value of a ConcurIterable. Since v2.0.0 | |
An iterable that contains zero values. Can be used as an iterable of any type. Like Example
Since v0.0.1 | |
An async iterable that contains zero values. Can be used as an async iterable of any type. Like Example
Since v0.0.1 | |
Returns an async iterable wrapper around WARNING: When passing a concur iterable the returned async iterable will buffer the values yielded by the concur iterable if they are not read from the async iterable as quickly as they are yielded by the concur iterable. This happens because concur iterables are push-based while async iterables are pull-based, which creates backpressure. Example
Since v0.0.2 | |
Returns a concur iterable wrapper around Example
Since v0.0.2 | |
Returns a function that takes a single parameter and pipes it through the given functions. Example
Since v0.0.2 | |
Returns a curried version of Example
Since v0.0.1 | |
A concur iterable that contains zero values. Can be used as a concur iterable of any type. Like Example
Since v0.0.2 | |
Returns an iterable equivalent, but not referentially equal, to Example
Since v2.0.0 | |
Returns an async iterable equivalent, but not referentially equal, to
Example
Since v2.0.0 | |
Returns an concur iterable equivalent, but not referentially equal, to
Example
Since v2.0.0 | |
Returns the result of piping Example
Since v0.0.1 |
Filters
Function | Description |
---|---|
Returns an iterable containing the values of Example
Since v2.0.0 | |
Returns an async iterable containing the values of Example
Since v2.0.0 | |
Returns a concur iterable containing the values of Example
Since v2.0.0 | |
Returns an iterable that contains the values of Like Example
Since v0.0.1 | |
Returns an async iterable that contains the values of Like Example
Since v0.0.1 | |
Returns a concur iterable that contains the values of Like Example
Since v0.0.1 | |
Returns an iterable containing the values of Example
Since v0.0.1 | |
Returns an async iterable containing the values of Example
Since v0.0.1 | |
Returns a concur iterable containing the values of Example
Since v0.0.1 | |
Returns an iterable containing the first value of Like Example
Since v0.0.1 | |
Returns an async iterable containing the first value of Like Example
Since v0.0.1 | |
Returns a concur iterable containing the first value of Like Example
Since v0.0.1 | |
Returns an iterable containing the last value of Example
Since v0.0.1 | |
Returns an async iterable containing the last value of Example
Since v0.0.1 | |
Returns a concur iterable containing the last value of Example
Since v0.0.2 | |
Returns an iterable containing the values of Example
Since v0.0.1 | |
Returns an async iterable containing the values of Example
Since v0.0.2 | |
Returns an iterable containing the values of When values are deduplicated, the value earlier in iteration order wins. Example
Since v0.0.1 | |
Returns an async iterable containing the values of When values are deduplicated, the value earlier in iteration order wins. Example
Since v0.0.2 | |
Returns a concur iterable containing the values of When values are deduplicated, the value earlier in iteration order wins. Example
Since v0.0.2 | |
Returns a concur iterable containing the values of Example
Since v0.0.2 |
Generators
Type alias, Function | Description |
---|---|
An iterable that yields integers in a range. See RangeIterable.step for obtaining a new iterable that skips integers in steps. Since v2.0.0 | |
Returns an infinite iterable that repeatedly yields the values of WARNING: This function does not buffer the values of Example
Since v0.0.1 | |
Returns an infinite async iterable that repeatedly yields the values of
WARNING: This function does not buffer the values of Example
Since v0.0.1 | |
Returns an iterable containing the entries of This differs from Example
Since v0.1.0 | |
Returns an infinite iterable that yields Example
Since v0.0.1 | |
Returns an infinite async iterable that yields Example
Since v0.0.1 | |
Returns an iterable containing the keys of This differs from Example
Since v0.1.0 | |
Returns a RangeIterable that yields the integers between Throws if either Example
Since v0.0.1 | |
Returns a RangeIterable that yields the integers between Throws if either Example
Since v0.0.1 | |
Returns an infinite iterable that repeatedly yields Example
Since v0.0.1 | |
Returns an iterable containing the values of This differs from Example
Since v0.1.0 |
Optionals
Type alias, Function | Description |
---|---|
An async iterable containing exactly zero or one values. Since v2.0.0 | |
A concur iterable containing exactly zero or one values. Since v2.0.0 | |
An iterable containing exactly zero or one values. Since v2.0.0 | |
Returns the only value in Example
Since v0.0.1 | |
Returns a promise that resolves to the only value in Example
Since v0.0.1 | |
Returns a promise that resolves to the only value in Example
Since v0.0.2 | |
Returns a pair of iterables. If Example
Since v0.0.1 | |
Returns a promise that resolves to a pair of async iterables. If
Example
Since v0.0.1 | |
Returns the only value in Example
Since v0.0.1 | |
Returns a promise that resolves to the only value in Example
Since v0.0.1 | |
Returns a promise that resolves to the only value in Example
Since v0.0.2 |
Predicates
Function | Description |
---|---|
Returns Like Example
Since v0.0.1 | |
Returns a promise that resolves to Like Example
Since v0.0.1 | |
Returns a promise that resolves to Like Example
Since v0.0.2 | |
Returns Like Example
Since v0.0.1 | |
Returns a promise that resolves to Like Example
Since v0.0.1 | |
Returns a promise that resolves to Like Example
Since v0.0.2 | |
Returns Like Example
Since v0.0.2 | |
Returns a promise that resolves to Like Example
Since v0.0.2 | |
Returns a promise that resolves to Like Example
Since v0.0.2 | |
Returns Example
Since v0.0.1 | |
Returns a promise that resolves to Example
Since v0.0.1 | |
Returns a promise that resolves to Example
Since v0.0.2 |
Reducers
Type alias, Variable, Function | Description |
---|---|
An async reducer that reduces by combining pairs of values using function application. Since v2.0.0 | |
An async keyed reducer that reduces by creating an initial accumulator using RawAsyncReducerWithoutFinish.create and then adding key-value pairs to the accumulator values using RawAsyncReducerWithoutFinish.add. The async keyed reducer is optionally able to combine pairs of accumulators using RawAsyncReducerWithoutFinish.combine. The accumulator can be queried for values by key using RawAsyncKeyedReducer.get. Since v2.0.0 | |
An async reducer that reduces by combining pairs of values using RawAsyncOptionalReducerWithoutFinish.add and then transforming the final value using RawAsyncOptionalReducerWithFinish.finish. Since v2.0.0 | |
An async reducer that reduces by creating an initial accumulator using RawAsyncReducerWithoutFinish.create, then adding values to the accumulator values using RawAsyncReducerWithoutFinish.add, and then transforming the final accumulator using RawAsyncReducerWithFinish.finish. The async reducer is optionally able to combine pairs of accumulators using RawAsyncReducerWithoutFinish.combine. Since v2.0.0 | |
A reducer that reduces by combining pairs of values using function application. Example
Since v2.0.0 | |
A keyed reducer that reduces by creating an initial accumulator using RawReducerWithoutFinish.create and then adding key-value pairs to the accumulator values using RawReducerWithoutFinish.add. The accumulator can be queried for values by key using RawKeyedReducer.get. Since v2.0.0 | |
A reducer that reduces by combining pairs of values using RawOptionalReducerWithoutFinish.add and then transforming the final value using RawOptionalReducerWithFinish.finish. It's identical to RawOptionalReducerWithFinish except its Example
Since v2.0.0 | |
An async keyed reducer that reduces by creating an initial accumulator using RawAsyncReducerWithoutFinish.create and then adding key-value pairs to the accumulator values using RawAsyncReducerWithoutFinish.add. The async keyed reducer is optionally able to combine pairs of accumulators using RawAsyncReducerWithoutFinish.combine. The accumulator can be queried for values by key using RawAsyncKeyedReducer.get. Since v2.0.0 | |
An async reducer that reduces by combining pairs of values using RawAsyncOptionalReducerWithoutFinish.add and then transforming the final value using RawAsyncOptionalReducerWithFinish.finish. Since v2.0.0 | |
An async reducer that reduces by combining pairs of values using RawAsyncOptionalReducerWithoutFinish.add. Since v2.0.0 | |
An async reducer that reduces by creating an initial accumulator using RawAsyncReducerWithoutFinish.create, then adding values to the accumulator values using RawAsyncReducerWithoutFinish.add, and then transforming the final accumulator using RawAsyncReducerWithFinish.finish. The async reducer is optionally able to combine pairs of accumulators using RawAsyncReducerWithoutFinish.combine. Since v2.0.0 | |
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. Since v2.0.0 | |
A keyed reducer that reduces by creating an initial accumulator using RawReducerWithoutFinish.create and then adding key-value pairs to the accumulator values using RawReducerWithoutFinish.add. The accumulator can be queried for values by key using RawKeyedReducer.get. Since v2.0.0 | |
A reducer that reduces by combining pairs of values using RawOptionalReducerWithoutFinish.add and then transforming the final value using RawOptionalReducerWithFinish.finish. Example
Since v2.0.0 | |
A reducer that reduces by combining pairs of values using RawOptionalReducerWithoutFinish.add. Example
Since v2.0.0 | |
A reducer that reduces by creating an initial accumulator using RawReducerWithoutFinish.create, then adding values to the accumulator values using RawReducerWithoutFinish.add, and then transforming the final accumulator using RawReducerWithFinish.finish. Example
Since v2.0.0 | |
A reducer that reduces by creating an initial accumulator using RawReducerWithoutFinish.create and then adding values to the accumulator values using RawReducerWithoutFinish.add. Example
Since v2.0.0 | |
A reducer that reduces by creating an initial accumulator using RawReducerWithoutFinish.create, then adding values to the accumulator values using RawReducerWithoutFinish.add, and then transforming the final accumulator using RawReducerWithFinish.finish. It's identical to RawReducerWithFinish except its Example
Since v2.0.0 | |
A unique value representing the lack of an entry for some key in a KeyedReducer or AsyncKeyedReducer. Keyed reducers use this instead of Since v2.0.0 | |
Returns an AsyncReducer equivalent to Since v2.0.0 | |
Returns a Reducer or OptionalReducer equivalent to Since v2.0.0 | |
Returns a non-raw version of Since v2.0.0 | |
Returns the result of reducing An initial accumulator is created using
RawReducerWithoutFinish.create. Then each value in If Like Example
Since v0.0.1 | |
Returns the result of reducing the Informally, an initial accumulator is created using
RawAsyncReducerWithoutFinish.create. Then each value in
If Like Example
Since v0.0.1 | |
Returns the result of reducing the Informally, an initial accumulator is created using
RawAsyncReducerWithoutFinish.create. Then each value in
If Like Example
Since v0.0.1 |
Side effects
Function | Description |
---|---|
Returns an iterable equivalent to Example
Since v2.0.0 | |
Returns an async iterable equivalent to Example
Since v2.0.0 | |
Returns a concur iterable equivalent to Example
Since v2.0.0 | |
Iterates through Example
Since v2.0.0 | |
Iterates through Example
Since v2.0.0 | |
Iterates through the Example
Since v2.0.0 | |
Returns an iterable equivalent to Example
Since v0.0.1 | |
Returns an async iterable equivalent to The result of applying Example
Since v0.0.1 | |
Returns an concur iterable equivalent to The result of applying Example
Since v0.0.1 | |
Applies Like Example
Since v0.0.1 | |
Returns a promise that resolves when The result of applying Like Example
Since v0.0.1 | |
Returns a promise that resolves when Like Example
Since v0.0.1 |