flat Map
inline fun <R> ByteBuffer.flatMap(transform: (Byte) -> Iterable<R>): List<R>
Content copied to clipboard
inline fun <R> ShortBuffer.flatMap(transform: (Short) -> Iterable<R>): List<R>
Content copied to clipboard
inline fun <R> IntBuffer.flatMap(transform: (Int) -> Iterable<R>): List<R>
Content copied to clipboard
inline fun <R> LongBuffer.flatMap(transform: (Long) -> Iterable<R>): List<R>
Content copied to clipboard
inline fun <R> FloatBuffer.flatMap(transform: (Float) -> 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 of original array.
Samples
kool.buffers.Collections.Transformations.flatMap