GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Overview
  • API Index
  • 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

This view

  • Original page
  • New address

GeezerVison is showing clojure.github.io — clojure.set - Clojure v1.12.4 API documentation

Clojure

Clojure Core API Reference

Clojure v1.12.4 API
  • Overview
  • API Index
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
  • v1.12.3 (stable)
  • v1.13 (in development)
  • v1.11.4 (legacy)
  • v1.10.3 (legacy)
  • v1.9 (legacy)
  • v1.8 (legacy)
  • v1.7 (legacy)
  • v1.6 (legacy)
  • v1.5 (legacy)
  • v1.4 (legacy)
  • v1.3 (legacy)
  • v1.2 (legacy)
  • v1.1 (legacy)
Clojure Home

Table of Contents

Overview
Vars and Functions
difference
index
intersection
join
map-invert
project
rename
rename-keys
select
subset?
superset?
union

API for clojure.set - Clojure v1.12.4 (stable)

by Rich Hickey

Full namespace name: clojure.set

Overview

Set operations such as union/intersection.

Public Variables and Functions



difference

function
Usage: (difference s1)
       (difference s1 s2)
       (difference s1 s2 & sets)
Return a set that is the first set without elements of the remaining sets

    Added in Clojure version 1.0
Source


index

function
Usage: (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

function
Usage: (intersection s1)
       (intersection s1 s2)
       (intersection s1 s2 & sets)
Return a set that is the intersection of the input sets

    Added in Clojure version 1.0
Source


join

function
Usage: (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

function
Usage: (map-invert m)
Returns the map with the vals mapped to the keys.

    Added in Clojure version 1.0
Source


project

function
Usage: (project xrel ks)
Returns a rel of the elements of xrel with only the keys in ks

    Added in Clojure version 1.0
Source


rename

function
Usage: (rename xrel kmap)
Returns a rel of the maps in xrel with the keys in kmap renamed to the vals in kmap

    Added in Clojure version 1.0
Source


rename-keys

function
Usage: (rename-keys map kmap)
Returns the map with the keys in kmap renamed to the vals in kmap

    Added in Clojure version 1.0
Source


select

function
Usage: (select pred xset)
Returns a set of the elements for which pred is true

    Added in Clojure version 1.0
Source


subset?

function
Usage: (subset? set1 set2)
Is set1 a subset of set2?

    Added in Clojure version 1.2
Source


superset?

function
Usage: (superset? set1 set2)
Is set1 a superset of set2?

    Added in Clojure version 1.2
Source


union

function
Usage: (union)
       (union s1)
       (union s1 s2)
       (union s1 s2 & sets)
Return a set that is the union of the input sets

    Added 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.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.