aboutsummaryrefslogtreecommitdiff
path: root/src/clojure/contrib
diff options
context:
space:
mode:
authorKonrad Hinsen <konrad.hinsen@laposte.net>2009-02-23 13:04:12 +0000
committerKonrad Hinsen <konrad.hinsen@laposte.net>2009-02-23 13:04:12 +0000
commit71157849b45227078fde454893610e2655c1203e (patch)
tree2b68055cbf42bdab840fa8077599015dec6c5999 /src/clojure/contrib
parentfabb7df259390e9eaafc1023240b0cfce95941c2 (diff)
accumulators: rewritten defmulti doc strings
Diffstat (limited to 'src/clojure/contrib')
-rw-r--r--src/clojure/contrib/accumulators.clj22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/clojure/contrib/accumulators.clj b/src/clojure/contrib/accumulators.clj
index 5a6ec415..b97cc048 100644
--- a/src/clojure/contrib/accumulators.clj
+++ b/src/clojure/contrib/accumulators.clj
@@ -1,7 +1,7 @@
;; Accumulators
;; by Konrad Hinsen
-;; last updated February 15, 2009
+;; last updated February 23, 2009
;; This module defines various accumulators (list, vector, map,
;; sum, product, counter, and combinations thereof) with a common
@@ -28,22 +28,22 @@
tag (get ^fv ::accumulator nil)]
(if (nil? tag) (class fv) tag)))
-(defmulti
- #^{:doc "Add item to the accumulator acc. The exact meaning of adding an
- an item depends on the type of the accumulator."
- :arglists '([acc item])}
- add selector)
+(defmulti add
+ "Add item to the accumulator acc. The exact meaning of adding an
+ an item depends on the type of the accumulator."
+ {:arglists '([acc item])}
+ selector)
(defn add-items
"Add all elements of a collection coll to the accumulator acc."
[acc items]
(reduce add acc items))
-(defmulti
- #^{:doc "Combine the values of the accumulators acc1 and acc2 into a
- single accumulator of the same type."
- :arglists '([acc1 acc2])}
- combine selector)
+(defmulti combine
+ "Combine the values of the accumulators acc1 and acc2 into a
+ single accumulator of the same type."
+ {:arglists '([acc1 acc2])}
+ selector)
;