Is there a simply syntax to apply a function like f(x) = x*exp(x)
to a list of points L
for example L=[1,2,3,4,19]
. I want to be able to write something like f(L)
which is a new list with the elements [f(1),f(2),f(3),f(4),f(19)]
1 | initial version |
Is there a simply syntax to apply a function like f(x) = x*exp(x)
to a list of points L
for example L=[1,2,3,4,19]
. I want to be able to write something like f(L)
which is a new list with the elements [f(1),f(2),f(3),f(4),f(19)]