lots o fixes
Some checks failed
Build / build (push) Successful in 9m50s
Publish Image / publish (push) Failing after 49s
Test / build (push) Successful in 10m55s

This commit is contained in:
2024-04-01 18:18:45 -04:00
parent fe33fda0ab
commit 862119e90e
44 changed files with 326 additions and 170 deletions

24
examples/fibi.m Normal file
View File

@@ -0,0 +1,24 @@
fib := fn(n) {
if (n < 3) {
return 1
}
a := 1
b := 1
c := 0
i := 0
while (i < n - 2) {
c = a + b
b = a
a = c
i = i + 1
}
return a
}
N := 35
if (len(args()) > 0) {
N = int(args()[0])
}
println(fib(N))