This website requires JavaScript.
Explore
Help
Sign In
jeff
/
dust
Watch
1
Star
0
Fork
0
You've already forked dust
Code
Issues
52027db6c3
Branches
Tags
View all branches
dust
/
examples
/
fibonacci.ds
10 lines
90 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Fix function context bug
2024-01-28 18:42:27 -05:00
fib = (i <int>) <int> {
Clean up example
2023-10-13 15:20:20 -04:00
if i <= 1 {
Implement new grammar
2023-10-09 15:54:47 -04:00
1
} else {
Clean up
2024-01-28 17:46:15 -05:00
fib(i - 1) + fib(i - 2)
Implement new grammar
2023-10-09 15:54:47 -04:00
}
}
Fix function context bug
2024-01-28 18:42:27 -05:00
fib(8)
Copy Permalink