projects
/
fur
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Allow the results of function calls to be immediately called
[fur]
/
examples
/
24_function_calls_for_functions.fur
diff --git a/examples/24_function_calls_for_functions.fur
b/examples/24_function_calls_for_functions.fur
new file mode 100644
(file)
index 0000000..
bebadb9
--- /dev/null
+++ b/
examples/24_function_calls_for_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')