Apply a callback to an array: Difference between revisions
→{{header|Nial}}
Line 534:
--> 1 4 9 16 25
If you used pairs() instead of ipairs(), this would even work on a hash table in general.
=={{header|Nial}}==
each (* [first, first] ) 1 2 3 4
=1 4 9 16
=={{header|OCaml}}==
|