take

abstract fun take(limit: Int): Readable

Take the first limit items from this stream.

Return

The new stream.

Parameters

limit

The number of items to take.


abstract fun take(limit: Int, options: Value): Readable
abstract fun take(limit: Int, options: ReadableDropOptions): Readable

Take the first limit items from this stream.

Return

The new stream.

Parameters

limit

The number of items to take.

options

The options for the take operation.