chickadee » srfi-196 » vector->range

vector->range vectorprocedure

Returns an expanded range whose elements are those of vector. Note that, unlike vector-range, it is not an error to mutate vector; future mutations of vector are guaranteed not to affect the range returned by vector->range. This procedure runs in O(n) time, where n is the length of vector. Otherwise, this procedure is equivalent to vector-range.

Example

(range->list (vector->range #(1 3 5 7 9))) ⇒ (1 3 5 7 9)