flatMap

abstract fun flatMap(cbk: Value): Readable
abstract fun flatMap(cbk: () -> Iterable<Value>): Readable

Map over this stream to produce a new stream of items.

Return

The mapped stream.

Parameters

cbk

The callback to map with.


abstract fun flatMap(cbk: Value, options: Value): Readable

Map over this stream to produce a new stream of items.

Return

The mapped stream.

Parameters

cbk

The callback to map with.

options

The options for the flatMap operation.


abstract fun flatMap(options: ReadableFlatMapOptions, cbk: () -> Iterable<Value>): Readable

Map over this stream to produce a new stream of items.

Return

The mapped stream.

Parameters

options

The options for the flatMap operation.

cbk

The callback to map with.