single Or Null
Returns single element, or null
if the array is empty or has more than one element.
inline fun ShortBuffer.singleOrNull(predicate: (Short) -> Boolean): Short?
Content copied to clipboard
inline fun FloatBuffer.singleOrNull(predicate: (Float) -> Boolean): Float?
Content copied to clipboard
inline fun DoubleBuffer.singleOrNull(predicate: (Double) -> Boolean): Double?
Content copied to clipboard
Returns the single element matching the given predicate, or null
if element was not found or more than one element was found.