day2: fib and unless

master
Jason Staten 5 years ago
parent 93896db44f
commit cb5b4ba9ed

@ -0,0 +1,11 @@
(ns two.core)
(defn- nextfib [[a b]] [(+ a b) a])
(def fibs
(map first
(iterate nextfib [1 1])))
(defmacro unless [test body else]
(list 'if (list 'not test) body else))
Loading…
Cancel
Save