Returns the range of indices described by this range expression within the given collection.
- Xcode 9.3+
- Swift Standard Library
The collection to evaluate this range expression in relation to.
A range suitable for slicing
collection. The returned range is not guaranteed to be inside the bounds of
collection. Callers should apply the same preconditions to the return value as they would to a range provided directly by the user.