deelang/demo/blockexample.dee

17 lines
360 B
Plaintext
Raw Permalink Normal View History

2021-11-25 11:09:29 -06:00
fun <- ->
do-something()
do-something-else()
foo <- ->
bar <- ->
baz <- ->
print("Deep in here")
print ("Inside foo but not in baz or bar")
foo() ## Inside foo but not in baz or bar
2024-11-18 21:42:17 -06:00
add <- x -> y -> x + y ## Multivariable functions by currying
2021-11-25 18:39:22 -06:00
add(x) ## Returns a _function_
2024-11-18 21:42:17 -06:00
add(x, y) ## This is equivalent to add(x)(y)