Ask Your Question

Revision history [back]

Alternatively you can use the comprehension list syntax :

f(x) = x*exp(x)
L = [1,2,3,4,19]
M = [f(x) for x in L]

As far as I know, this is a syntactic sugar for the map function proposed by benjaminfjones