RosettaCodeData/Task/Function-composition/GAP/function-composition.gap
Ingy döt Net db842d013d A-M baby
2013-04-10 21:29:02 -07:00

7 lines
110 B
Text

Composition := function(f, g)
return x -> f(g(x));
end;
h := Composition(x -> x+1, x -> x*x);
h(5);
# 26