API for generic.collection - clojure-contrib v1.2 (stable)

by Konrad Hinsen

Full namespace name: clojure.contrib.generic.collection

Overview

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


seq

multimethod
Usage: (seq s)
Returns a seq on the object s.
Source
Logo & site design by Tom Hickey.
Clojure auto-documentation system by Tom Faulhaber.