api / koma.util.validation / ValidationContext / invoke

invoke

operator funMatrix<Double>.invoke(fn:ValidationContext.() ->Unit):ValidationContext

Execute the given fn (which should contain validation rules) against the given matrix.

In general it is preferable to use the other verison of this function that lets you specify a name. All matrices that are validated with this method will appear in the error message with the name "matrix"

operator funMatrix<Double>.invoke(name:String, fn:ValidationContext.() ->Unit):ValidationContext

Execute the given fn (which should contain validation rules) against the given matrix with the given name.

Parameters

name - Name of the matrix to report in validation error messages.

Returns this

operator fun invoke():ValidationContext