API for clojure.algo.generic.collection
-
by Konrad Hinsen
Full namespace name:
clojure.algo.generic.collection
Overview
Generic collection interface
This library defines generic versions of common
collection-related functions as multimethods that can be
defined for any type.
Public Variables and Functions
assoc
multimethod
Usage: (assoc coll & key-val-pairs)
Returns a new collection in which the values corresponding to the
given keys are updated by the given values. Each type of collection
can have specific restrictions on the possible keys.
Source
conj
multimethod
Usage: (conj coll & xs)
Returns a new collection resulting from adding all xs to coll.
Source
dissoc
multimethod
Usage: (dissoc coll & keys)
Returns a new collection in which the entries corresponding to the
given keys are removed. Each type of collection can have specific
restrictions on the possible keys.
Source
empty
multimethod
Usage: (empty coll)
Returns an empty collection of the same kind as the argument
Source
get
multimethod
Usage: (get coll key)
(get coll key not-found)
Returns the element of coll referred to by key. Each type of collection
can have specific restrictions on the possible keys.
Source
into
multimethod
Usage: (into to from)
Returns a new coll consisting of to-coll with all of the items of
from-coll conjoined. A default implementation based on reduce, conj, and
seq is provided.
Source
seq
multimethod
Usage: (seq s)
Returns a seq on the object s.
Source