@basic-streams/chain
Advanced tools
Comparing version 0.0.5 to 0.0.6
{ | ||
"name": "@basic-streams/chain", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "chain operator for basic-streams", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -7,5 +7,4 @@ # [@basic-streams](https://github.com/rpominov/basic-streams)/chain | ||
The given function `fn` will be applied to each value in the given `stream` to | ||
create an intermediate stream. The resulting stream will contain all values from | ||
all intermediate streams. | ||
Creates a stream containing all values from all streams created by applying the | ||
given function `fn` to each value in the given `stream`. | ||
@@ -16,4 +15,4 @@ ```js | ||
const stream = fromIterable([1, 2], 10) | ||
const fn = x => fromIterable([x, x, x], 7) | ||
const stream = fromIterable([1, 2], 10000) | ||
const fn = x => fromIterable([x, x, x], 7000) | ||
@@ -33,3 +32,2 @@ const result = chain(fn, stream) | ||
// | ||
// stream: _________1_________2 | ||
@@ -36,0 +34,0 @@ // fn(1): ______1______1______1 |
4492
37