API for accumulators - clojure-contrib v1.1 (stable)

by Konrad Hinsen

clojure-contrib is now deprecated

clojure-contrib is no longer being developed or maintained.

Rather than a single, monolithic, contributions library, Clojure now has a set of separate libraries for each unit of functionality. The libraries are in the Clojure GitHub organization at https://github.com/clojure. API documentation of the libraries can be found at https://clojure.github.io.

If you're looking for a specific function or namespace from the old clojure-contrib, see "Where Did Clojure.Contrib Go".


Full namespace name: clojure.contrib.accumulators

Overview

A generic accumulator interface and implementations of various
accumulators.

Public Variables and Functions



add

multimethod
This library, clojure-contrib, is deprecated. See here for more information.
Usage: (add acc item)
Add item to the accumulator acc. The exact meaning of adding an
an item depends on the type of the accumulator.
Source


add-items

function
This library, clojure-contrib, is deprecated. See here for more information.
Usage: (add-items acc items)
Add all elements of a collection coll to the accumulator acc.
Source


combine

multimethod
This library, clojure-contrib, is deprecated. See here for more information.
Usage: (combine & accs)
Combine the values of the accumulators acc1 and acc2 into a
single accumulator of the same type.
Source


empty-counter

var
This library, clojure-contrib, is deprecated. See here for more information.

  
An empty counter accumulator. Its value is a map that stores for
every item the number of times it was added.
Source


empty-counter-with-total

var
This library, clojure-contrib, is deprecated. See here for more information.

  
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.
Source


empty-list

var
This library, clojure-contrib, is deprecated. See here for more information.

  
An empty list accumulator. Adding an item appends it at the beginning.
Source


empty-map

var
This library, clojure-contrib, is deprecated. See here for more information.

  
An empty map accumulator. Items to be added must be [key value] pairs.
Source


empty-maximum

var
This library, clojure-contrib, is deprecated. See here for more information.

  
An empty maximum accumulator. Only numbers can be added.
Source


empty-mean-variance

var
This library, clojure-contrib, is deprecated. See here for more information.

  
An empty mean-variance accumulator, combining sample mean and
sample variance. Only numbers can be added.
Source


empty-min-max

var
This library, clojure-contrib, is deprecated. See here for more information.

  
An empty min-max accumulator, combining minimum and maximum.
Only numbers can be added.
Source


empty-minimum

var
This library, clojure-contrib, is deprecated. See here for more information.

  
An empty minimum accumulator. Only numbers can be added.
Source


empty-product

var
This library, clojure-contrib, is deprecated. See here for more information.

  
An empty sum accumulator. Only numbers can be added.
Source


empty-queue

var
This library, clojure-contrib, is deprecated. See here for more information.

  
An empty queue accumulator. Adding an item appends it at the end.
Source


empty-set

var
This library, clojure-contrib, is deprecated. See here for more information.

  
An empty set accumulator.
Source


empty-string

var
This library, clojure-contrib, is deprecated. See here for more information.

  
An empty string accumulator. Adding an item (string or character)
appends it at the end.
Source


empty-sum

var
This library, clojure-contrib, is deprecated. See here for more information.

  
An empty sum accumulator. Only numbers can be added.
Source


empty-tuple

function
This library, clojure-contrib, is deprecated. See here for more information.
Usage: (empty-tuple empty-accumulators)
Returns an accumulator tuple with the supplied empty-accumulators
as its value. Accumulator tuples consist of several accumulators that
work in parallel. Added items must be sequences whose number of elements
matches the number of sub-accumulators.
Source


empty-vector

var
This library, clojure-contrib, is deprecated. See here for more information.

  
An empty vector accumulator. Adding an item appends it at the end.
Source
Logo & site design by Tom Hickey.
Clojure auto-documentation system by Tom Faulhaber.