1.2.0 permalink Arrow_down_16x16

empty-counter-with-total

clojure.contrib.accumulators

An empty counter-with-total accumulator. It works like the counter
accumulator, except that the total number of items added is stored as the
value of the key :total.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/contrib/accumulators.clj:292 top

(defvar empty-counter-with-total
  (counter-with-total {:total 0})
  "An empty counter-with-total accumulator. It works like the counter
   accumulator, except that the total number of items added is stored as the
   value of the key :total.")
Vars in clojure.contrib.accumulators/empty-counter-with-total:
Used in 0 other vars

Comments top

No comments for empty-counter-with-total. Log in to add a comment.