Compose a series of single-argument functions/operators in application order. (This is basically a deferred version of pipe().) For example:
const func = compose(skip(1), take(2), map(x => x*2));
const stream_4_6 = func(fromIterable([1,2,3,4])); // stream that outputs 4, 6
As with pipe(), the declared typings only support composing up to 9
functions at once; if you need more you'll need to nest calls to compose()
(i.e. passing the result of a compose() as an argument to another
compose() call.)
A function taking the same type as the first input function, returning the same type as the last input function.
Compose a series of single-argument functions/operators in application order. (This is basically a deferred version of pipe().) For example:
const func = compose(skip(1), take(2), map(x => x*2));
const stream_4_6 = func(fromIterable([1,2,3,4])); // stream that outputs 4, 6
As with pipe(), the declared typings only support composing up to 9
functions at once; if you need more you'll need to nest calls to compose()
(i.e. passing the result of a compose() as an argument to another
compose() call.)
A function taking the same type as the first input function, returning the same type as the last input function.
Compose a series of single-argument functions/operators in application order. (This is basically a deferred version of pipe().) For example:
const func = compose(skip(1), take(2), map(x => x*2));
const stream_4_6 = func(fromIterable([1,2,3,4])); // stream that outputs 4, 6
As with pipe(), the declared typings only support composing up to 9
functions at once; if you need more you'll need to nest calls to compose()
(i.e. passing the result of a compose() as an argument to another
compose() call.)
A function taking the same type as the first input function, returning the same type as the last input function.
Compose a series of single-argument functions/operators in application order. (This is basically a deferred version of pipe().) For example:
const func = compose(skip(1), take(2), map(x => x*2));
const stream_4_6 = func(fromIterable([1,2,3,4])); // stream that outputs 4, 6
As with pipe(), the declared typings only support composing up to 9
functions at once; if you need more you'll need to nest calls to compose()
(i.e. passing the result of a compose() as an argument to another
compose() call.)
A function taking the same type as the first input function, returning the same type as the last input function.
Compose a series of single-argument functions/operators in application order. (This is basically a deferred version of pipe().) For example:
const func = compose(skip(1), take(2), map(x => x*2));
const stream_4_6 = func(fromIterable([1,2,3,4])); // stream that outputs 4, 6
As with pipe(), the declared typings only support composing up to 9
functions at once; if you need more you'll need to nest calls to compose()
(i.e. passing the result of a compose() as an argument to another
compose() call.)
A function taking the same type as the first input function, returning the same type as the last input function.
Compose a series of single-argument functions/operators in application order. (This is basically a deferred version of pipe().) For example:
const func = compose(skip(1), take(2), map(x => x*2));
const stream_4_6 = func(fromIterable([1,2,3,4])); // stream that outputs 4, 6
As with pipe(), the declared typings only support composing up to 9
functions at once; if you need more you'll need to nest calls to compose()
(i.e. passing the result of a compose() as an argument to another
compose() call.)
A function taking the same type as the first input function, returning the same type as the last input function.
Compose a series of single-argument functions/operators in application order. (This is basically a deferred version of pipe().) For example:
const func = compose(skip(1), take(2), map(x => x*2));
const stream_4_6 = func(fromIterable([1,2,3,4])); // stream that outputs 4, 6
As with pipe(), the declared typings only support composing up to 9
functions at once; if you need more you'll need to nest calls to compose()
(i.e. passing the result of a compose() as an argument to another
compose() call.)
A function taking the same type as the first input function, returning the same type as the last input function.
Compose a series of single-argument functions/operators in application order. (This is basically a deferred version of pipe().) For example:
const func = compose(skip(1), take(2), map(x => x*2));
const stream_4_6 = func(fromIterable([1,2,3,4])); // stream that outputs 4, 6
As with pipe(), the declared typings only support composing up to 9
functions at once; if you need more you'll need to nest calls to compose()
(i.e. passing the result of a compose() as an argument to another
compose() call.)
A function taking the same type as the first input function, returning the same type as the last input function.
Compose a series of single-argument functions/operators in application order. (This is basically a deferred version of pipe().) For example:
const func = compose(skip(1), take(2), map(x => x*2));
const stream_4_6 = func(fromIterable([1,2,3,4])); // stream that outputs 4, 6
As with pipe(), the declared typings only support composing up to 9
functions at once; if you need more you'll need to nest calls to compose()
(i.e. passing the result of a compose() as an argument to another
compose() call.)
A function taking the same type as the first input function, returning the same type as the last input function.
Compose a series of single-argument functions/operators in application order. (This is basically a deferred version of pipe().) For example:
As with
pipe(), the declared typings only support composing up to 9 functions at once; if you need more you'll need to nest calls tocompose()(i.e. passing the result of acompose()as an argument to anothercompose()call.)