10 lines
99 B
Plaintext
10 lines
99 B
Plaintext
fib <(int) -> int> = fn |i| {
|
|
if i <= 1 {
|
|
1
|
|
} else {
|
|
(fib i - 1) + (fib i - 2)
|
|
}
|
|
}
|
|
|
|
(fib 5)
|