chickadee » srfi-196 » string-range

string-range stringprocedure

Returns a range whose elements are those of string. It is an error to mutate string. This procedure runs in O(n) time, where n is the length of string (in the sense of string-length). The average accessing time of the resulting range is O(1).

string-range supports Unicode (UTF-8) strings.

Example:

(range->list (string-range "abcde"))
  ⇒ (#\a #\b #\c #\d #\e)