mapIndexed

open fun <R> mapIndexed(mapper: (Int, T) -> R): Stream<R>(source)

Map the stream to another stream

Return

The new stream

Since

0.5.0

Parameters

R

The type of the new stream

mapper

The mapper function