Advertisement
blankstare

broken loop

Feb 21st, 2013
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (defn fire-x-times
  2.   ([x] (fire-x-times x 0))
  3.   ([x i]
  4.    (if (== i x)
  5.      (println "done")
  6.      ((println "fired" (+ i 1) "times.") (fire-x-times x (inc i))) )))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement