ClojureDocs

Namespaces

clojure.set

Set operations such as union/intersection.

Functions for working on sets (#{1 2 3 4}) in all the ways you’d expect, e.g. calculating the intersection of two sets, and testing if one set is a subset of another.

Vars in clojure.set

d

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

i

index
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.
intersection
Return a set that is the intersection of the input sets

j

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

m

map-invert
Returns the map with the vals mapped to the keys.

p

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

r

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

s

select
Returns a set of the elements for which pred is true
subset?
Is set1 a subset of set2?
superset?
Is set1 a superset of set2?

u

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