Algorithm.map
Creates a new container from an enumerable, having applied a function to all its entries.
Arguments
The
enumerable0
is an enumerable containing source elements.The
callable
is a function to be applied to each element, with the following stack notation:( value0 -- value1 )
Return values
enumerable1
is the resulting enumerable.
Complexity
Depends on the source enumerable and the callable.
Example
Output:
1.414214
1.732051
2.236068
2.449490
2.645751