roc/examples/closure/Closure.roc
2020-11-05 00:02:49 +01:00

9 lines
144 B
Text

app Closure provides [ makeClosure ] imports []
makeClosure : ({} -> Int) as MyClosure
makeClosure =
x = 42
y = 42
\{} -> x + y