fn fib(n) = match n {
0 -> 0
1 -> 1
_ -> fib(n-1) + fib(n-2)
}
println("The first 10 fibonacci numbers are:")
var i = 0
while i < 10 {
println(fib(i))
i <- i + 1
}
(Requires Rust and Cargo: https://www.rust-lang.org/tools/install)
git clone https://github.com/anandrav/abra.git
cd abra
cargo install --bin abra --path cli