distinct

fun ByteBuffer.distinct(): List<Byte>
fun ShortBuffer.distinct(): List<Short>
fun IntBuffer.distinct(): List<Int>
fun LongBuffer.distinct(): List<Long>
fun FloatBuffer.distinct(): List<Float>
fun DoubleBuffer.distinct(): List<Double>
fun CharBuffer.distinct(): List<Char>

Returns a list containing only distinct elements from the given array.

The elements in the resulting list are in the same order as they were in the source array.

Samples

kool.buffers.Collections.Transformations.distinctAndDistinctBy