Table of Contents

disj

Disjoins an element from the set.

Syntax

(disj setofelements x)

Example

(ns clojure.examples.example
   (:gen-class))
(defn example []
   (println (disj (set '(3 2 1)) 2)))
(example)

Output

#{1 3}

Refs