api / koma.extensions / any
any
@JvmName("anyDouble") inline fun
Matrix
<
Double
>.any(f: (
Double
) ->
Boolean
):
Boolean
@JvmName("anyFloat") inline fun
Matrix
<
Float
>.any(f: (
Float
) ->
Boolean
):
Boolean
@JvmName("anyGeneric") fun <T>
Matrix
<
T
>.any(f: (
T
) ->
Boolean
):
Boolean
@JvmName("anyInt") inline fun
Matrix
<
Int
>.any(f: (
Int
) ->
Boolean
):
Boolean
Checks to see if any element in the matrix causes f to return true.
Parameters
f
- A function which takes in an element from the matrix and returns a Boolean.
Return Whether or not any element, when passed into f, causes f to return true.