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 c8d54c8 commit 18e7c20Copy full SHA for 18e7c20
example/fib.bl
@@ -1,7 +1,9 @@
1
# Computes fib(10) recursively.
2
3
-def fib (n? : Int) =
+def fib n? : Int =
4
if n < 2 then
5
n
6
else
7
(fib n - 1) + (fib n - 2)
8
+
9
+println fib 10
0 commit comments