Liking cljdoc? Tell your friends :D

clojure.data.int-map

An adaptation of Okasaki and Gill's "Fast Mergeable Integer Maps`", which can be found at http://ittc.ku.edu/~andygill/papers/IntMap98.pdf

An adaptation of Okasaki and Gill's "Fast Mergeable Integer Maps`",
which can be found at http://ittc.ku.edu/~andygill/papers/IntMap98.pdf
raw docstring

dense-int-setclj

(dense-int-set)
(dense-int-set s)

Given a collection, creates an immutable set which can only store integral values. This should be used only if elements are densely clustered (each element has multiple elements within +/- 1000).

Given a collection, creates an immutable set which can only store integral values.
This should be used only if elements are densely clustered (each element has multiple
elements within +/- 1000).
sourceraw docstring

differenceclj

(difference a b)

Returns the difference between two bitsets.

Returns the difference between two bitsets.
sourceraw docstring

int-mapclj

(int-map)
(int-map a b)
(int-map a b & rest)

Given alternating keys and values, creates an integer map that can only have integers as keys.

Given alternating keys and values, creates an integer map that can only
have integers as keys.
sourceraw docstring

int-setclj

(int-set)
(int-set s)

Given a collection, creates an immutable set which can only store integral values. This should be used unless elements are densely clustered (each element has multiple elements within +/- 1000).

Given a collection, creates an immutable set which can only store integral values.
This should be used unless elements are densely clustered (each element has multiple
elements within +/- 1000).
sourceraw docstring

intersectionclj

(intersection a b)

Returns the intersection of two bitsets.

Returns the intersection of two bitsets.
sourceraw docstring

mergeclj

(merge)
(merge a b)
(merge a b & rest)

Merges together two int-maps, giving precedence to values from the right-most map.

Merges together two int-maps, giving precedence to values from the right-most map.
sourceraw docstring

merge-withclj

(merge-with f)
(merge-with f a b)
(merge-with f a b & rest)

Merges together two int-maps, using f to resolve value conflicts.

Merges together two int-maps, using `f` to resolve value conflicts.
sourceraw docstring

rangeclj

(range x min max)

Returns a map or set representing all elements within [min, max], inclusive.

Returns a map or set representing all elements within [min, max], inclusive.
sourceraw docstring

unionclj

(union a b)

Returns the union of two bitsets.

Returns the union of two bitsets.
sourceraw docstring

updateclj

(update m k f)
(update m k f & args)

Updates the value associated with the given key. If no such key exists, f is invoked with nil.

Updates the value associated with the given key.  If no such key exists, `f` is invoked
with `nil`.
sourceraw docstring

update!clj

(update! m k f)
(update! m k f & args)

A transient variant of update.

A transient variant of `update`.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close