We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07be55a commit 6f563d1Copy full SHA for 6f563d1
README.md
@@ -21,6 +21,7 @@ This language is still currently experimental with many more features to come.
21
* Conditionals.
22
* Loops.
23
* Closures.
24
+* [Recursion](examples/recursion.ls).
25
* Blocks.
26
* Printing.
27
* Lambda expressions/Anonymous functions.
examples/fib.ls renamed to examples/recursion.ls
@@ -1,3 +1,4 @@
1
+// Typical function declaration that solves for fib of n
2
func fib(n) {
3
if (n <= 1) {
4
return n;
@@ -6,4 +7,5 @@ func fib(n) {
6
7
return fib(n - 2) + fib(n - 1);
8
}
9
10
+// Starts parsing fib of 10.
11
print fib(10);
0 commit comments