subvec

functionsince v0.0-927 clojure.core/subvecEdit
(subvec v start)
(subvec v start end)

Details:

Returns a persistent vector of the items in v from start inclusive to end exclusive.

If end is not supplied, defaults to (count v).

This operation is O(1) and very fast, as the resulting vector shares structure with the original and no trimming is done.


See Also:


Source docstring:
Returns a persistent vector of the items in vector from
start (inclusive) to end (exclusive).  If end is not supplied,
defaults to (count vector). This operation is O(1) and very fast, as
the resulting vector shares structure with the original and no
trimming is done.
Source code @ clojurescript:src/main/cljs/cljs/core.cljs
(defn subvec
  ([v start]
   (subvec v start (count v)))
  ([v start end]
   (assert (and (not (nil? start)) (not (nil? end))))
   (build-subvec nil v (int start) (int end) nil)))