single Or Null
Returns single element, or null if the array is empty or has more than one element.
inline fun ComplexFloatArray.singleOrNull(predicate: (ComplexFloat) -> Boolean): ComplexFloat?
Content copied to clipboard
inline fun ComplexDoubleArray.singleOrNull(predicate: (ComplexDouble) -> Boolean): ComplexDouble?
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.