api / koma.extensions / all
all
@JvmName("allDouble") inline fun
Matrix
<
Double
>.all(f: (
Double
) ->
Boolean
):
Boolean
@JvmName("allFloat") inline fun
Matrix
<
Float
>.all(f: (
Float
) ->
Boolean
):
Boolean
@JvmName("allGeneric") fun <T>
Matrix
<
T
>.all(f: (
T
) ->
Boolean
):
Boolean
@JvmName("allInt") inline fun
Matrix
<
Int
>.all(f: (
Int
) ->
Boolean
):
Boolean
Checks to see if all elements cause f to return true.
Parameters
f
- A function which takes in an element from the matrix and returns a Boolean.
Return Returns true only if f is true for all elements of the input matrix