Anonymous user
Partial function application: Difference between revisions
m
→{{header|Elena}}
m (→{{header|Wren}}: Changed to Wren S/H) |
imported>Arakov |
||
Line 829:
=={{header|Elena}}==
{{trans|Smalltalk}}
ELENA
<syntaxhighlight lang="elena">import system'collections;
import system'routines;
Line 838:
var partial := (afs,af => (s => afs(af, s)));
var fs := (f,s => s.selectBy::(x => f(x)).summarize(new ArrayList()).toArray());
var f1 := (x => x * 2);
var f2 := (x => x * x);
|