aboutsummaryrefslogtreecommitdiff
path: root/src/clojure/contrib/accumulators.clj
diff options
context:
space:
mode:
Diffstat (limited to 'src/clojure/contrib/accumulators.clj')
-rw-r--r--src/clojure/contrib/accumulators.clj6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/clojure/contrib/accumulators.clj b/src/clojure/contrib/accumulators.clj
index 65821976..5a6ec415 100644
--- a/src/clojure/contrib/accumulators.clj
+++ b/src/clojure/contrib/accumulators.clj
@@ -1,7 +1,7 @@
;; Accumulators
;; by Konrad Hinsen
-;; last updated February 13, 2009
+;; last updated February 15, 2009
;; This module defines various accumulators (list, vector, map,
;; sum, product, counter, and combinations thereof) with a common
@@ -167,13 +167,13 @@
; similarly used to represent +infinity.
(defacc maximum (fn [& xs]
- (when-let [xs (filter identity xs)]
+ (when-let [xs (seq (filter identity xs))]
(apply max xs)))
nil
"An empty maximum accumulator. Only numbers can be added.")
(defacc minimum (fn [& xs]
- (when-let [xs (filter identity xs)]
+ (when-let [xs (seq (filter identity xs))]
(apply min xs)))
nil
"An empty minimum accumulator. Only numbers can be added.")