dropLastWhile

inline fun ByteBuffer.dropLastWhile(predicate: (Byte) -> Boolean): List<Byte>
inline fun ShortBuffer.dropLastWhile(predicate: (Short) -> Boolean): List<Short>
inline fun IntBuffer.dropLastWhile(predicate: (Int) -> Boolean): List<Int>
inline fun LongBuffer.dropLastWhile(predicate: (Long) -> Boolean): List<Long>
inline fun FloatBuffer.dropLastWhile(predicate: (Float) -> Boolean): List<Float>
inline fun DoubleBuffer.dropLastWhile(predicate: (Double) -> Boolean): List<Double>

Returns a list containing all elements except last elements that satisfy the given predicate.

Samples

kool.buffers.Collections.Transformations.drop