Arrays and collections / Arrays

(def n1 [1 2 3])
(def n2 [1 2 3])
(def n3 [3 2 1])

;; = compares by value, and it is the one function for every collection
(println (= n1 n2))              ; true
(println (= n1 n3))              ; false

;; a vector equals a list with the same items — both are sequences
(println (= n1 '(1 2 3)))        ; true

;; but never a set: that is a different kind of collection
(println (= n1 #{1 2 3}))        ; false
(println (= (set n1) (set n3)))  ; true — same items, order ignored