数组和集合 / 数组

(def numbers [1 3 2 1 3])

(def unique (vec (distinct numbers)))
;; unique is [1 3 2] — distinct keeps the original order
(println unique)

;; a set drops the duplicates too, but promises no order at all
(println (set numbers))              ; #{1 3 2}
(println (count (set numbers)))      ; 3