flat Map Indexed
inline fun <R> ByteBuffer.flatMapIndexed(transform: (index: Int, Byte) -> Iterable<R>): List<R>
Content copied to clipboard
inline fun <R> ShortBuffer.flatMapIndexed(transform: (index: Int, Short) -> Iterable<R>): List<R>
Content copied to clipboard
inline fun <R> IntBuffer.flatMapIndexed(transform: (index: Int, Int) -> Iterable<R>): List<R>
Content copied to clipboard
inline fun <R> LongBuffer.flatMapIndexed(transform: (index: Int, Long) -> Iterable<R>): List<R>
Content copied to clipboard
inline fun <R> FloatBuffer.flatMapIndexed(transform: (index: Int, Float) -> Iterable<R>): List<R>
Content copied to clipboard
inline fun <R> DoubleBuffer.flatMapIndexed(transform: (index: Int, Double) -> Iterable<R>): List<R>
Content copied to clipboard
inline fun <R> CharBuffer.flatMapIndexed(transform: (index: Int, Char) -> Iterable<R>): List<R>
Content copied to clipboard
Returns a single list of all elements yielded from results of transform function being invoked on each element and its index in the original array.
Samples
kool.buffers.Collections.Transformations.flatMapIndexed