mirror of
https://github.com/janet-lang/janet
synced 2025-01-12 16:40:27 +00:00
11 lines
106 B
Plaintext
11 lines
106 B
Plaintext
(do
|
|
|
|
(:= fib (fn (n)
|
|
(if (< n 2)
|
|
1
|
|
(+ (fib (- n 1)) (fib (- n 2))))))
|
|
|
|
(print 10)
|
|
(print (fib 33))
|
|
)
|