From a7edad1e666fcdf4ed7334bb7e553e44e323a018 Mon Sep 17 00:00:00 2001 From: Dane Johnson Date: Thu, 25 Nov 2021 18:39:22 -0600 Subject: [PATCH] Add currying examples --- blockexample.dee | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/blockexample.dee b/blockexample.dee index 9ca2e1b..80848ef 100644 --- a/blockexample.dee +++ b/blockexample.dee @@ -12,4 +12,7 @@ foo <- -> foo() ## Inside foo but not in baz or bar add <- x -> y -> - return x + y \ No newline at end of file + return x + y ## Multivariable functions by currying + +add(x) ## Returns a _function_ +add(x, y) ## This is equivalent to add(x)(y) \ No newline at end of file