Used to only ensure that distinct elements are added to the sequence.
Following is the syntax.
Parameters − ‘seq1’ is the sequence list of elements.
Return Value − The sequence of elements wherein only distinct elements are returned.
Following is an example of distinct in Clojure.
(ns clojure.examples.example (:gen-class)) ;; This program displays Hello World (defn Example  (def seq1 (distinct (seq [1 1 2 2]))) (println seq1)) (Example)
The above program produces the following output.