RosettaCodeData/Task/Higher-order-functions/ALGOL-68/higher-order-functions.alg
Ingy döt Net db842d013d A-M baby
2013-04-10 21:29:02 -07:00

13 lines
167 B
Text

PROC first = (PROC(LONG REAL)LONG REAL f) LONG REAL:
(
f(1) + 2
);
PROC second = (LONG REAL x)LONG REAL:
(
x/2
);
main: (
printf(($xg(5,2)l$,first(second)))
)