RosettaCodeData/Task/First-class-functions-Use-n.../Fantom/first-class-functions-use-n...

5 lines
119 B
Plaintext

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