| 1 | initial version |
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
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.