This website requires JavaScript.
Explore
Help
Sign In
jeff
/
dust
Watch
1
Star
0
Fork
0
You've already forked dust
Code
0.3.6-types
dust
/
examples
/
fibonacci.ds
10 lines
93 B
Plaintext
Raw
Permalink
Normal View
History
Unescape
Escape
Continue type check implementation
2023-11-27 20:02:08 +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 {
Clean up example
2023-10-13 19:20:20 +00:00
(fib i - 1) + (fib i - 2)
Implement new grammar
2023-10-09 19:54:47 +00:00
}
}
Clean up example
2023-10-13 19:20:20 +00:00
(fib 5)
Copy Permalink