Apply a callback to an array: Difference between revisions

Content added Content deleted
(Added Algol W)
(Added Quackery.)
Line 2,511: Line 2,511:
Result:
Result:
<lang python>0 1 4 9 16 25 36 49 64 81</lang>
<lang python>0 1 4 9 16 25 36 49 64 81</lang>

=={{header|Quackery}}==

As a dialog in the Quackery shell (REPL).

<pre>/O> ' [ ]
... ' [ 1 2 3 4 5 6 7 8 9 10 ]
... witheach [ 3 ** join ]
...

Stack: [ 1 8 27 64 125 216 343 512 729 1000 ]
</pre>


=={{header|R}}==
=={{header|R}}==