summaryrefslogtreecommitdiff
path: root/benchmark/other-lang/fib.scm
blob: 2fc4e225bd32a0db976b7fb87278e39e7731ddc0 (plain)
1
2
3
4
5
6
7
(define (fib n)
        (if (< n 3)
            1
          (+ (fib (- n 1)) (fib (- n 2)))))

(fib 34)