Range.map
mapfunction
Documentation
Applies a function to each element in the range, producing a vector of results.
Arguments
function
: The function to apply to each integer in the range.
Examples
Create a vector that contains the numbers twice that of the numbers in
the range.
1.up_to 10 . map (*2)