IndexedMapStream

class IndexedMapStream<T, R>(stream: Stream<T>, mapper: (Int, T) -> R) : Stream<R> (source)

Constructors

Link copied to clipboard
constructor(stream: Stream<T>, mapper: (Int, T) -> R)

Functions

Link copied to clipboard
fun <T> Stream<out Stream<T>>.flatten(): FlatStream<T>
Link copied to clipboard
open fun forEach(action: (R) -> Unit)

For each element in the stream, call the given function

Link copied to clipboard
open fun forEachIndexed(action: (Int, R) -> Unit)

For each element in the stream, call the given function

Link copied to clipboard
open override fun hasNext(): Boolean

Check if the stream has a next element

Link copied to clipboard
open fun <R> map(mapper: (R) -> R): Stream<R>

Map the stream to another stream

Link copied to clipboard
open fun <R> mapIndexed(mapper: (Int, R) -> R): Stream<R>

Map the stream to another stream

Link copied to clipboard
open override fun read(): R

Read the next element from the stream