RosettaCodeData/Task/Higher-order-functions/ALGOL-68/higher-order-functions.alg

14 lines
167 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
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)))
)