Contents

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.Index

Parameters

  • indices:

    The indices to include in the range set. All members of indices must be valid indicies of collection that aren’t equal to the collection’s endIndex.

  • collection:

    The collection that contains index.