Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdearman committed Jun 17, 2024
1 parent 599e1b2 commit 9f55528
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions examples/mvp.scm
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,6 @@
n
(+ (fib (- n 1)) (fib (- n 2)))))

(def (fib 0) 0)
(def (fib 1) 1)
(def (fib n) (+ (fib (- n 1)) (fib (- n 2))))

(def (gcd a 0) a)
(def (gcd a b) (gcd b (% a b)))

(def (map f []) [])
(def (map f (x . xs)) (:: (f x) (map f xs)))

(def (fib n)
(if (<= n 1)
n
Expand Down

0 comments on commit 9f55528

Please sign in to comment.