projects
/
fur
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Remove support for ternary comparison operators
[fur]
/
examples
/
22_parenthesized_functions.fur
diff --git a/examples/22_parenthesized_functions.fur
b/examples/22_parenthesized_functions.fur
new file mode 100644
(file)
index 0000000..
9cf111e
--- /dev/null
+++ b/
examples/22_parenthesized_functions.fur
@@ -0,0
+1,10
@@
+def make_incrementer(increment_amount) do
+ def result(i) do
+ increment_amount + i
+ end
+
+ result
+end
+
+print((make_incrementer(1))(41), '\n')
+print((make_incrementer(2))(40), '\n')