VARS

bubble-max-key

difference

index

intersection

join

map-invert

project

rename

rename-keys

select

subset?

superset?

union

bubble-max-key

difference

index

intersection

join

map-invert

project

rename

rename-keys

select

subset?

superset?

union

« Index of all namespaces of this project

Set operations such as union/intersection.

Private

`(bubble-max-key k coll)`

Move a maximal element of coll according to fn k (which returns a number) to the front of coll.

`(difference s1)`

`(difference s1 s2)`

`(difference s1 s2 & sets)`

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

`(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.

`(intersection s1)`

`(intersection s1 s2)`

`(intersection s1 s2 & sets)`

Return a set that is the intersection of the input sets

`(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.

`(rename xrel kmap)`

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