concept disj in category clojure
appears as:
disj, disj

This is an excerpt from Manning's book Clojure: The Essential Reference.
(defn valid? [allowed values] (empty? (apply disj (set values) allowed))) ; #1 (def allowed [:a :b :c]) (valid? allowed [:c :c 1 :a]) ; #2 ;; false (valid? allowed [:c :c :a]) ; #3 ;; true
conj is the opposite of disj, butdisjis not polymorphic like conj and only works on sets.
difference is another option to remove multiple items from a set. differencetakes the items to remove grouped in a set, whiledisjaccepts them as distinct arguments.
There are other functions in the standard library that would benefit from
transient. The book illustrated the use oftransientto improve the performance of: zipmap, merge, tree-seq, disj and select-keys. We also usedtransientin: