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
(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).
(difference a b)
Returns the difference between two bitsets.
Returns the difference between two bitsets.
(int-map)
(int-map a b)
(int-map a b & rest)
Given alternating keys and values, creates an integer map that can only have non-negative integers as keys.
Given alternating keys and values, creates an integer map that can only have non-negative integers as keys.
(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).
(intersection a b)
Returns the intersection of two bitsets.
Returns the intersection of two bitsets.
(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.
(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.
(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.
(union a b)
Returns the union of two bitsets.
Returns the union of two bitsets.
(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`.
(update! m k f)
(update! m k f & args)
A transient variant of update
.
A transient variant of `update`.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close