Initial commit - fix problems & refactor code
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
(defn maybeprint (n) (when (= (% n 50) 0) (do (prints n " ") (flush))))
|
||||
(defn odd? (n) (if (= n 0) false (do (maybeprint n) (even? (- n 1)))))
|
||||
(defn even? (n) (if (= n 0) true (do (maybeprint n) (odd? (- n 1)))))
|
||||
; (print (odd? (read)))
|
||||
Reference in New Issue
Block a user