7 lines
169 B
Text
7 lines
169 B
Text
l = [1, 2, 3]
|
|
|
|
-- passes the built-in function 'sin' (which is a method of the _movie object) as argument to map
|
|
res = map(l, #sin)
|
|
|
|
put res
|
|
-- [0.8415, 0.9093, 0.1411]
|