FWIW, ArraySlice.base
is not public. I even brought this up recently:
I've found the base
property extremely helpful for "framing" a subsequence in its parent context. E.g. when parsing a substring, access to the base
makes it easy to render an error that points to the start/end indices of the substring within the larger string. The same use case could be applied to array slices.
Is there a "better" way to achieve this kind of thing without reaching for the base
sequence?