Created
November 27, 2012 14:43
-
-
Save mattdeboard/4154582 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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