A fork of Crisp for HARP
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

13 lines
327 B

(load-file "../core.mal")
(load-file "../perf.mal")
;;(prn "Start: basic math/recursion test")
(def! sumdown (fn* (N) (if (> N 0) (+ N (sumdown (- N 1))) 0)))
(def! fib (fn* (N) (if (= N 0) 1 (if (= N 1) 1 (+ (fib (- N 1)) (fib (- N 2)))))))
(time (do
(sumdown 10)
(fib 12)))
;;(prn "Done: basic math/recursion test")