Skip to content

Commit 41a0392

Browse files
committed
add fibonacci example and update gitignore
1 parent bce08b5 commit 41a0392

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

Diff for: .gitignore

+10
Original file line numberDiff line numberDiff line change
@@ -1 +1,11 @@
11
.vscode/
2+
3+
*.exe
4+
*.exe~
5+
*.dll
6+
*.so
7+
*.dylib
8+
*.test
9+
*.out
10+
vendor/
11+
go.work

Diff for: examples/fibonacci.krb

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
fn fib(n){
2+
if n <= 1 {
3+
return n
4+
} else {
5+
return fib(n-1) + fib(n-2)
6+
}
7+
}
8+
9+
println(fib(9))

0 commit comments

Comments
 (0)