Apply a callback to an array: Difference between revisions

m
make square the input
(New Language--NetLogo)
m (make square the input)
Line 2,067:
=={{header|NetLogo}}==
<lang NetLogo>
show (map { { x } x * 2x } [ 1 2 3 4 5 ])
</lang>