projects
/
fur
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Added lambda expressions
[fur]
/
examples
/
30_lambda.fur
diff --git a/examples/30_lambda.fur
b/examples/30_lambda.fur
new file mode 100644
(file)
index 0000000..
f5ecb8a
--- /dev/null
+++ b/
examples/30_lambda.fur
@@ -0,0
+1,8
@@
+def incrementer(n) do
+ lambda(m) do
+ m + n
+ end
+end
+
+print(incrementer(1)(42), '\n')
+print(incrementer(2)(42), '\n')