init(_:within:)
Creates a new range set containing ranges that contain only the specified indices in the given collection.
Declaration
init<S, C>(_ indices: S, within collection: C) where Bound == S.Element, S : Sequence, C : Collection, S.Element == C.IndexParameters
- collection:
The collection that contains
index.