This website requires JavaScript.
Explore
Help
Sign In
jeff
/
dust
Watch
1
Star
0
Fork
0
You've already forked dust
Code
3d21196768
dust
/
examples
/
fibonacci.ds
10 lines
92 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Revise function and yield syntax
2023-12-30 02:15:03 +00:00
fib = (i <int>) <int> {
Clean up example
2023-10-13 19:20:20 +00:00
if i <= 1 {
Implement new grammar
2023-10-09 19:54:47 +00:00
1
} else {
Fix stack overflow; Clean up
2024-01-25 14:08:39 +00:00
self(i - 1) + self(i - 2)
Implement new grammar
2023-10-09 19:54:47 +00:00
}
}
Move TUI project; Increment cargo version
2023-12-30 04:57:09 +00:00
fib(8)
Copy Permalink