vector_lambda


function vector_lambda<Lambda>(λ:Lambda, length:Integer) ->

Create a vector filled by a lambda function.

@param λ Lambda function. - length Length of the vector.

Returns The new vector.

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