api / koma.extensions / all

all

@JvmName("allDouble") inline funMatrix<Double>.all(f: (Double) ->Boolean):Boolean @JvmName("allFloat") inline funMatrix<Float>.all(f: (Float) ->Boolean):Boolean @JvmName("allGeneric") fun <T>Matrix<T>.all(f: (T) ->Boolean):Boolean @JvmName("allInt") inline funMatrix<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