Apply a callback to an array: Difference between revisions

Content added Content deleted
No edit summary
Line 279: Line 279:


=={{header|Arturo}}==
=={{header|Arturo}}==
<lang rebol>arr: [1 2 3 4 5]


print map arr => [2*&]</lang>
<lang arturo>arr: [1 2 3 4 5]

print map arr => *2</lang>

{{out}}
{{out}}


<pre>2 4 6 8 10</pre>
<pre>2 4 6 8 10</pre>



=={{header|AutoHotkey}}==
=={{header|AutoHotkey}}==