deelang/demo/blockexample.dee

17 lines
360 B
Plaintext

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
add <- x -> y -> x + y ## Multivariable functions by currying
add(x) ## Returns a _function_
add(x, y) ## This is equivalent to add(x)(y)