hy/eg/rpython/test.hy

13 lines
160 B
Hy
Raw Normal View History

2013-03-20 05:37:43 +01:00
; hello, rHy!
(defn fib [n]
(if (<= n 2) n
(+ (fib (- n 1)) (fib (- n 2)))))
(defn main [argv]
(for [x [1 2 3 4 5 6 7 8]]
(print (fib x)))
0)