| CARVIEW |
Select Language
HTTP/2 200
server: GitHub.com
content-type: text/html; charset=utf-8
last-modified: Wed, 10 Dec 2025 19:08:02 GMT
access-control-allow-origin: *
etag: W/"6939c512-3ed8"
expires: Thu, 22 Jan 2026 14:46:28 GMT
cache-control: max-age=600
content-encoding: gzip
x-proxy-cache: MISS
x-github-request-id: 7BC9:20957B:32256:377FD:697235EC
accept-ranges: bytes
age: 0
date: Thu, 22 Jan 2026 14:36:28 GMT
via: 1.1 varnish
x-served-by: cache-bom-vanm7210057-BOM
x-cache: MISS
x-cache-hits: 0
x-timer: S1769092588.380171,VS0,VE261
vary: Accept-Encoding
x-fastly-request-id: cb8732567ef16e2128ddc79e0345b4f9ce46ec8c
content-length: 2727
clojure.set - Clojure v1.12.4 API documentation
Full namespace name: clojure.set
Source
Source
Source
Source
Source
Source
Source
Source
Source
Source
Source
Source
Clojure v1.12.4 API
Namespaces
- clojure.core
- clojure.data
- clojure.datafy
- clojure.edn
- clojure.inspector
- clojure.instant
- clojure.java.basis
- clojure.java.browse
- clojure.java.io
- clojure.java.javadoc
- clojure.java.process
- clojure.java.shell
- clojure.main
- clojure.math
- clojure.pprint
- clojure.reflect
- clojure.repl
- clojure.set
- clojure.stacktrace
- clojure.string
- clojure.template
- clojure.test
- clojure.tools.deps.interop
- clojure.walk
- clojure.xml
- clojure.zip
Other Versions
Clojure Home
Table of Contents
API for clojure.set - Clojure v1.12.4 (stable)
by Rich HickeyFull namespace name: clojure.set
Overview
Set operations such as union/intersection.
Public Variables and Functions
difference
functionUsage: (difference s1)
(difference s1 s2)
(difference s1 s2 & sets)
Return a set that is the first set without elements of the remaining setsAdded in Clojure version 1.0
Source
index
functionUsage: (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.Added in Clojure version 1.0
Source
intersection
functionUsage: (intersection s1)
(intersection s1 s2)
(intersection s1 s2 & sets)
Return a set that is the intersection of the input setsAdded in Clojure version 1.0
Source
join
functionUsage: (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.Added in Clojure version 1.0
Source
map-invert
functionUsage: (map-invert m)
Returns the map with the vals mapped to the keys.Added in Clojure version 1.0
Source
project
functionUsage: (project xrel ks)
Returns a rel of the elements of xrel with only the keys in ksAdded in Clojure version 1.0
Source
rename
functionUsage: (rename xrel kmap)
Returns a rel of the maps in xrel with the keys in kmap renamed to the vals in kmapAdded in Clojure version 1.0
Source
rename-keys
functionUsage: (rename-keys map kmap)
Returns the map with the keys in kmap renamed to the vals in kmapAdded in Clojure version 1.0
Source
select
functionUsage: (select pred xset)
Returns a set of the elements for which pred is trueAdded in Clojure version 1.0
Source
subset?
functionUsage: (subset? set1 set2)
Is set1 a subset of set2?Added in Clojure version 1.2
Source
superset?
functionUsage: (superset? set1 set2)
Is set1 a superset of set2?Added in Clojure version 1.2
Source
union
functionUsage: (union)
(union s1)
(union s1 s2)
(union s1 s2 & sets)
Return a set that is the union of the input setsAdded in Clojure version 1.0
Source
Copyright 2007-2025 by Rich Hickey
Logo & site design by Tom Hickey.
Clojure auto-documentation system by Tom Faulhaber.
Clojure auto-documentation system by Tom Faulhaber.