Apply a callback to an array: Difference between revisions
Content added Content deleted
(→BQN: add) |
imported>Arakov |
||
Line 1,123: | Line 1,123: | ||
=={{header|Elena}}== |
=={{header|Elena}}== |
||
ELENA |
ELENA 6.x : |
||
<syntaxhighlight lang="elena">import system'routines; |
<syntaxhighlight lang="elena">import system'routines; |
||
Line 1,130: | Line 1,130: | ||
public program() |
public program() |
||
{ |
{ |
||
new int[]{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}.forEach |
new int[]{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}.forEach(PrintSecondPower) |
||
}</syntaxhighlight> |
}</syntaxhighlight> |
||