Liking cljdoc? Tell your friends :D

clojure.set

Set operations such as union/intersection.

Set operations such as union/intersection.
raw docstring

differenceclj

(difference s1)
(difference s1 s2)
(difference s1 s2 & sets)

Return a set that is the first set without elements of the remaining sets

Return a set that is the first set without elements of the remaining sets
sourceraw docstring

indexclj

(index xrel ks)

Returns a map of the distinct values of ks in the xrel mapped to a set of the maps in xrel with the corresponding values of ks.

Returns a map of the distinct values of ks in the xrel mapped to a
set of the maps in xrel with the corresponding values of ks.
sourceraw docstring

intersectionclj

(intersection s1)
(intersection s1 s2)
(intersection s1 s2 & sets)

Return a set that is the intersection of the input sets

Return a set that is the intersection of the input sets
sourceraw docstring

joinclj

(join xrel yrel)
(join xrel yrel km)

When passed 2 rels, returns the rel corresponding to the natural join. When passed an additional keymap, joins on the corresponding keys.

When passed 2 rels, returns the rel corresponding to the natural
join. When passed an additional keymap, joins on the corresponding
keys.
sourceraw docstring

map-invertclj

(map-invert m)

Returns the map with the vals mapped to the keys.

Returns the map with the vals mapped to the keys.
sourceraw docstring

projectclj

(project xrel ks)

Returns a rel of the elements of xrel with only the keys in ks

Returns a rel of the elements of xrel with only the keys in ks
sourceraw docstring

renameclj

(rename xrel kmap)

Returns a rel of the maps in xrel with the keys in kmap renamed to the vals in kmap

Returns a rel of the maps in xrel with the keys in kmap renamed to the vals in kmap
sourceraw docstring

rename-keysclj

(rename-keys map kmap)

Returns the map with the keys in kmap renamed to the vals in kmap

Returns the map with the keys in kmap renamed to the vals in kmap
sourceraw docstring

selectclj

(select pred xset)

Returns a set of the elements for which pred is true

Returns a set of the elements for which pred is true
sourceraw docstring

subset?clj

(subset? set1 set2)

Is set1 a subset of set2?

Is set1 a subset of set2?
sourceraw docstring

superset?clj

(superset? set1 set2)

Is set1 a superset of set2?

Is set1 a superset of set2?
sourceraw docstring

unionclj

(union)
(union s1)
(union s1 s2)
(union s1 s2 & sets)

Return a set that is the union of the input sets

Return a set that is the union of the input sets
sourceraw docstring

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

× close