pascalabcnet/_Presentations/2015 New Features/Programs/25_lambda0.pas
Бондарев Иван e6e67c193c initial commit
2015-05-14 21:35:07 +02:00

10 lines
130 B
ObjectPascal

function MyFun(x: real): real := 3*x-2;
var f: RealFunc;
begin
f := MyFun;
writeln(f(2));
f := sqrt;
writeln(f(2));
end.