RosettaCodeData/Task/Higher-order-functions/PascalABC.NET/higher-order-functions.pas

7 lines
114 B
ObjectPascal
Raw Permalink Normal View History

2024-10-16 18:07:41 -07:00
##
function first(f: real-> real) := f(1.0) + 2.0;
function second(x: real) := x / 2.0;
println(first(second));