mapIndexedToBuffer

inline fun <T, R> Buffer<T>.mapIndexedToBuffer(bufferFactory: BufferFactory<R>, crossinline block: (index: Int, value: T) -> R): Buffer<R>(source)

Create a new buffer from this one with the given mapping (indexed) function. Provided bufferFactory is used to construct the new buffer.