mirror of
https://github.com/flynx/types.js.git
synced 2025-10-29 02:20:07 +00:00
docs...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
56409eed09
commit
d1e9fec9f2
@ -1621,7 +1621,8 @@ var a = generator.iter()
|
||||
var b = new generator.Generator()
|
||||
```
|
||||
|
||||
But `Generator()` takes no arguments and thus can not be used as a wrapper while `.iter(..)` is designed to accept an iterable value like an array object.
|
||||
But `Generator()` takes no arguments and thus can not be used as a wrapper
|
||||
while `.iter(..)` is designed to accept an iterable value like an array object.
|
||||
|
||||
|
||||
### Generator instance iteration
|
||||
@ -1629,7 +1630,8 @@ But `Generator()` takes no arguments and thus can not be used as a wrapper while
|
||||
This is a set of `Array`-like iterator methods that enable chaining of
|
||||
generators and `Promise`-like API to handle the generated results.
|
||||
|
||||
Chained generators handle items depth-first, i.e. the items are passed as they are yielded down the generator chain.
|
||||
Chained generators handle items depth-first, i.e. the items are passed as they
|
||||
are yielded down the generator chain.
|
||||
|
||||
|
||||
#### `<generator>.map(..)` / `<generator>.filter(..)` / `<generator>.reduce(..)`
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user