any

fun <T, D : Dimension> MultiArray<T, D>.any(): Boolean

Returns true if collection has at least one element.

See also


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

Returns true if at least one element matches the given predicate. If an ndarray is empty, then always returns false.