Массивы и коллекции / Массивы

(def numbers [2 3 5 7 11])

;; subvec stays a vector and copies nothing — it is a view of the source
(println (subvec numbers 0 2))          ; [2 3]
(println (subvec numbers 2))            ; [5 7 11]

;; take and drop work on any sequence and give a lazy seq
(println (take 2 numbers))              ; (2 3)
(println (drop 2 numbers))              ; (5 7 11)
(println (vec (take-last 2 numbers)))   ; [7 11]