RosettaCodeData/Task/First-class-functions-Use-numbers-analogously/Fantom/first-class-functions-use-numbers-analogously-2.fantom
2023-07-01 13:44:08 -04:00

4 lines
119 B
Text

static |Obj -> Obj| compose (|Obj -> Obj| fn1, |Obj -> Obj| fn2)
{
return |Obj x -> Obj| { fn2 (fn1 (x)) }
}