Some more experimentation: (defn splode3 [n] (with-local-vars [doc-count 0] (doseq [document (filter #(= % (- n 1)) (map inc (range n)))] (var-set doc-count (inc @doc-count))) 'done))
which does not blow up with (splode3 1000000000). --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---