Skip to content

Instantly share code, notes, and snippets.

@gtrak
Created November 19, 2012 23:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gtrak/ec9043e47789bc11d662 to your computer and use it in GitHub Desktop.
Save gtrak/ec9043e47789bc11d662 to your computer and use it in GitHub Desktop.
(defn mutate
[]
(let [x (atom 0)]
(loop []
(if (< 5 x)
(do (swap! x inc) (recur))
x)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment