RosettaCodeData/Task/First-class-functions/Dyalect/first-class-functions-1.dyalect
2023-07-01 13:44:08 -04:00

5 lines
90 B
Text

func apply(fun, x) { y => fun(x, y) }
func sum(x, y) { x + y }
let sum2 = apply(sum, 2)