summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMeikel Brandmeyer <mb@kotka.de>2010-05-27 19:00:30 +0200
committerStuart Halloway <stu@thinkrelevance.com>2010-06-03 21:20:38 -0400
commitfb52b69d75868e4ce49d0123bc1ceaae8d6f5fe8 (patch)
tree5e0acb6a7af6d36e718acac6d328da28c9f8c541 /src
parent31c184a0738b36a0610b6d3034a256bc970643bc (diff)
Fix reductions on empty input sequence
Refers #362 Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
Diffstat (limited to 'src')
-rw-r--r--src/clj/clojure/core.clj2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/clj/clojure/core.clj b/src/clj/clojure/core.clj
index 4c4fc473..2746a610 100644
--- a/src/clj/clojure/core.clj
+++ b/src/clj/clojure/core.clj
@@ -5555,7 +5555,7 @@
(lazy-seq
(if-let [s (seq coll)]
(reductions f (first s) (rest s))
- (f))))
+ (list (f)))))
([f init coll]
(cons init
(lazy-seq