Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdearman committed May 19, 2024
1 parent 0606e4b commit 54c0212
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/mvp.scm
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
(def (fib-iter n)
(let loop ((a 0) (b 1) (i n))
(if (= i 0)
a
(loop b (+ a b) (- i 1)))))
a
(loop b (+ a b) (- i 1)))))

;; this could also be done with a `match` expression
(def (fib n)
Expand Down

0 comments on commit 54c0212

Please sign in to comment.