summaryrefslogtreecommitdiffstats
path: root/benchmark/other-lang/fact.scm
blob: c98a7fedd3083d08b25b251eb40484c859e6e080 (plain)
1
2
3
4
5
6
7
8
(define (fact n)
        (if (< n 2)
            1
          (* n (fact (- n 1)))))

(dotimes (i 10000)
  (fact 100))