find

inline fun <T, D : Dimension> MultiArray<T, D>.find(predicate: (T) -> Boolean): T?

Returns the first element matching the given predicate, or null if no such element was found.