Liking cljdoc? Tell your friends :D

me.tonsky.persistent-sorted-set

A B-tree based persistent sorted set. Supports transients, custom comparators, fast iteration, efficient slices (iterator over a part of the set) and reverse slices. Almost a drop-in replacement for clojure.core/sorted-set, the only difference being this one can’t store nil.

A B-tree based persistent sorted set. Supports transients, custom comparators, fast iteration, efficient slices (iterator over a part of the set) and reverse slices. Almost a drop-in replacement for [[clojure.core/sorted-set]], the only difference being this one can’t store nil.

BTSet

source

Chunk

source

conj

(conj set key cmp)
cljClojure

Analogue to clojure.core/conj but with comparator that overrides the one stored in set.

Analogue to [[clojure.core/conj]] but with comparator that overrides the one stored in set.
cljsClojureScript

Analogue to clojure.core/conj with comparator that overrides the one stored in set.

Analogue to [[clojure.core/conj]] with comparator that overrides the one stored in set.
source (clj)source (cljs)raw docstring

disj

(disj set key cmp)

Analogue to clojure.core/disj with comparator that overrides the one stored in set.

Analogue to [[clojure.core/disj]] with comparator that overrides the one stored in set.
source (clj)source (cljs)raw docstring

est-count

(est-count iter)
source

from-sequential

Clojure arglists
(from-sequential cmp keys)
ClojureScript arglists
(from-sequential cmp seq)

Create a set with custom comparator and a collection of keys. Useful when you don’t want to call clojure.core/apply on sorted-set-by.

Create a set with custom comparator and a collection of keys. Useful when you don’t want to call [[clojure.core/apply]] on [[sorted-set-by]].
source (clj)source (cljs)raw docstring

from-sorted-array

Clojure arglists
(from-sorted-array cmp keys)
(from-sorted-array cmp keys len)
ClojureScript arglists
(from-sorted-array cmp arr)

Fast path to create a set if you already have a sorted array of elements on your hands.

Fast path to create a set if you already have a sorted array of elements on your hands.
source (clj)source (cljs)raw docstring

IIterprotocol

-copy
(-copy this left right)
source

INodeprotocol

node-conj
(node-conj _ cmp key)
node-disj
(node-disj _ cmp key root? left right)
node-len
(node-len _)
node-lim-key
(node-lim-key _)
node-lookup
(node-lookup _ cmp key)
node-merge
(node-merge _ next)
node-merge-n-split
(node-merge-n-split _ next)
source

Iter

source

iter

(iter set left right)
source

Leaf

source

max-len

source

min-len

source

Node

source

ReverseIter

source

riter

(riter set left right)
source

rslice

Clojure arglists
(rslice set from to)
(rslice set from to cmp)
ClojureScript arglists
(rslice set key)
(rslice set key-from key-to)
(rslice set key-from key-to comparator)
cljClojure

A reverse iterator for part of the set with provided boundaries. (rslice set from to) returns backwards iterator for all Xs where from <= X <= to. (rslice set from nil) returns backwards iterator for all Xs where X <= from. Optionally pass in comparator that will override the one that set uses. Supports efficient clojure.core/rseq.

A reverse iterator for part of the set with provided boundaries.
`(rslice set from to)` returns backwards iterator for all Xs where from <= X <= to.
`(rslice set from nil)` returns backwards iterator for all Xs where X <= from.
Optionally pass in comparator that will override the one that set uses. Supports efficient [[clojure.core/rseq]].
cljsClojureScript

A reverse iterator for part of the set with provided boundaries. (rslice set from to) returns backwards iterator for all Xs where from <= X <= to. Optionally pass in comparator that will override the one that set uses. Supports efficient clojure.core/rseq.

A reverse iterator for part of the set with provided boundaries.
`(rslice set from to)` returns backwards iterator for all Xs where from <= X <= to.
Optionally pass in comparator that will override the one that set uses. Supports efficient [[clojure.core/rseq]].
source (clj)source (cljs)raw docstring

slice

Clojure arglists
(slice set from to)
(slice set from to cmp)
ClojureScript arglists
(slice set key-from key-to)
(slice set key-from key-to comparator)
cljClojure

An iterator for part of the set with provided boundaries. (slice set from to) returns iterator for all Xs where from <= X <= to. (slice set from nil) returns iterator for all Xs where X >= from. Optionally pass in comparator that will override the one that set uses. Supports efficient clojure.core/rseq.

An iterator for part of the set with provided boundaries.
`(slice set from to)` returns iterator for all Xs where from <= X <= to.
`(slice set from nil)` returns iterator for all Xs where X >= from.
Optionally pass in comparator that will override the one that set uses. Supports efficient [[clojure.core/rseq]].
cljsClojureScript

An iterator for part of the set with provided boundaries. (slice set from to) returns iterator for all Xs where from <= X <= to. Optionally pass in comparator that will override the one that set uses. Supports efficient clojure.core/rseq.

An iterator for part of the set with provided boundaries.
`(slice set from to)` returns iterator for all Xs where from <= X <= to.
Optionally pass in comparator that will override the one that set uses. Supports efficient [[clojure.core/rseq]].
source (clj)source (cljs)raw docstring

sorted-set

(sorted-set)
(sorted-set & keys)
cljClojure

Create a set with default comparator.

Create a set with default comparator.
source (clj)source (cljs)raw docstring

sorted-set-by

(sorted-set-by cmp)
(sorted-set-by cmp & keys)
cljClojure

Create a set with custom comparator.

Create a set with custom comparator.
source (clj)source (cljs)raw docstring

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

× close