matrix_lambda


function matrix_lambda<Lambda>(λ:Lambda, rows:Integer, columns:Integer) ->

Create a matrix filled by a lambda function.

@param λ Lambda function. - rows Number of rows. - columns Number of columns.

Returns The new matrix.

The lambda function is called once for each element in the new matrix, receiving, as its argument, the row and column indices of that element, and returning the value at that element.