first Or Null
Returns the first element, or null
if the buffer is empty.
inline fun ShortBuffer.firstOrNull(predicate: (Short) -> Boolean): Short?
Content copied to clipboard
inline fun FloatBuffer.firstOrNull(predicate: (Float) -> Boolean): Float?
Content copied to clipboard
inline fun DoubleBuffer.firstOrNull(predicate: (Double) -> Boolean): Double?
Content copied to clipboard
Returns the first element matching the given predicate, or null
if element was not found.