diff options
author | Christophe Grand <christophe@cgrand.net> | 2009-02-27 17:19:58 +0000 |
---|---|---|
committer | Christophe Grand <christophe@cgrand.net> | 2009-02-27 17:19:58 +0000 |
commit | 38e603dced6b20f58132d095af97ca5052d667bb (patch) | |
tree | 6be6b590e436071318c5a2e1a8c5ed45419d70c2 /src/clojure/contrib/seq_utils.clj | |
parent | 7a085590b07b699286fb450c2759cbe91b77a511 (diff) |
I keep forgetting the existence of reset!
Diffstat (limited to 'src/clojure/contrib/seq_utils.clj')
-rw-r--r-- | src/clojure/contrib/seq_utils.clj | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/clojure/contrib/seq_utils.clj b/src/clojure/contrib/seq_utils.clj index de30ecfb..d6f73d6e 100644 --- a/src/clojure/contrib/seq_utils.clj +++ b/src/clojure/contrib/seq_utils.clj @@ -95,7 +95,7 @@ binding-name, allowing for recursive expressions." [binding-name & body] `(let [s# (atom nil)] - (swap! s# (constantly (lazy-seq (let [~binding-name @s#] ~@body)))))) + (reset! s# (lazy-seq (let [~binding-name @s#] ~@body))))) (defmacro rec-cat "Similar to lazy-cat but binds the resulting sequence to the supplied |