Function composition: Difference between revisions
Content added Content deleted
m (→{{header|Wren}}: Changed to Wren S/H) |
imported>Arakov |
||
Line 1,044: | Line 1,044: | ||
=={{header|Elena}}== |
=={{header|Elena}}== |
||
ELENA |
ELENA 6.x : |
||
<syntaxhighlight lang="elena">import extensions; |
<syntaxhighlight lang="elena">import extensions; |
||
Line 1,055: | Line 1,055: | ||
public program() |
public program() |
||
{ |
{ |
||
var fg := (x => x + 1).compose:(x => x * x); |
var fg := (x => x + 1).compose::(x => x * x); |
||
console.printLine(fg(3)) |
console.printLine(fg(3)) |