6 lines
90 B
Text
6 lines
90 B
Text
|
|
func apply(fun, x) { y => fun(x, y) }
|
||
|
|
|
||
|
|
func sum(x, y) { x + y }
|
||
|
|
|
||
|
|
let sum2 = apply(sum, 2)
|