RosettaCodeData/Task/Function-composition/PascalABC.NET/function-composition.pas

6 lines
122 B
ObjectPascal
Raw Normal View History

2024-10-16 18:07:41 -07:00
function Compose<T,T1,T2>(f: T1 -> T2; g: T -> T1): T -> T2 := x -> f(g(x));
2023-07-01 11:58:00 -04:00
2024-10-16 18:07:41 -07:00
begin
Compose(Sin,ArcSin)(1.0).Print
end.