Function composition: Difference between revisions
adding gap
No edit summary |
(adding gap) |
||
Line 493:
' 2* ' 1+ compose ( xt )
3 swap execute . \ 7</lang>
=={{header|GAP}}==
<lang gap>Composition := function(f, g)
return x -> f(g(x));
end;
h := Composition(x -> x+1, x -> x*x);
h(5);
# 26</lang>
=={{header|Go}}==
|