RosettaCodeData/Task/First-class-functions-Use-numbers-analogously/Fantom/first-class-functions-use-numbers-analogously-2.fantom

5 lines
119 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
static |Obj -> Obj| compose (|Obj -> Obj| fn1, |Obj -> Obj| fn2)
{
return |Obj x -> Obj| { fn2 (fn1 (x)) }
}