Vectors - sorokod/Clojure-Notes GitHub Wiki

Fast random access. Basic operations first rest last and cons - Just as in Lists. To access there is nth, also the vector acts as a function.

(def vic [1 2 3])

(nth vic 1)    ; 2 
(vic     1)    ; 2

concat combines vectors: (concat [0] [1 2 3]) ; (0 1 2 3). Like first rest last and cons this returns a list