aboutsummaryrefslogtreecommitdiff
path: root/examples/fib_rec.sloth
diff options
context:
space:
mode:
authorCody <cody@codyq.dev>2023-06-26 23:53:44 -0500
committerCody <cody@codyq.dev>2023-06-26 23:53:44 -0500
commit9748e95027af7820e6d9f08eb20b0901fdedfa2a (patch)
tree248fd1952537edc9e107110a6dc5a432c676d021 /examples/fib_rec.sloth
parent27b7187c21f6ff4e469592a8ea5757ca6aee8577 (diff)
downloadsloth-9748e95027af7820e6d9f08eb20b0901fdedfa2a.tar.gz
Delete random examples
Diffstat (limited to 'examples/fib_rec.sloth')
-rw-r--r--examples/fib_rec.sloth7
1 files changed, 0 insertions, 7 deletions
diff --git a/examples/fib_rec.sloth b/examples/fib_rec.sloth
deleted file mode 100644
index 306bcdf..0000000
--- a/examples/fib_rec.sloth
+++ /dev/null
@@ -1,7 +0,0 @@
-## Calculate a specific number in the fibonacci sequence
-fn fib(n: i32) -> i32 {
- match n {
- 0 | 1 => n,
- _ => fib(n - 1) + fib(n - 2),
- }
-}