Skip to content

Instantly share code, notes, and snippets.

@mattdeboard
Created November 27, 2012 14:43
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 mattdeboard/4154582 to your computer and use it in GitHub Desktop.
Save mattdeboard/4154582 to your computer and use it in GitHub Desktop.
(defn somework []
(let [coll [1 2 3 4 5]]
(if (nil? accum)
(def accum (first coll)))
(while (< accum 10)
(doseq [i (range (count coll))]
(def accum (+ accum (nth coll (inc i)))))))
(def accum nil))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment