3 lines
89 B
Text
3 lines
89 B
Text
f = {|x| x^2} // Anonymous function to square input
|
|
a = [1,2,3,5,7]
|
|
println[map[f, a]]
|