Anonymous user
Apply a callback to an array: Difference between revisions
Added Mathematica
(Added Mathematica) |
|||
Line 810:
2 4 6
</pre>
=={{header|Mathematica}}==
<lang Mathematica>(#*#)& /@ {1, 2, 3, 4}
Map[Function[#*#], {1, 2, 3, 4}]</lang>
=={{header|MATLAB}}==
|