Instance Method (Default implementation)swift 6.0.1Swift
index(after:)
Returns the position immediately after the given index.
func index(after i: Self.Index) -> Self.Index
Parameters
- i
A valid index of the collection.
i
must be less thanendIndex
.
Returns
The index value immediately after i
.
Implements
func index(after: Self.Index
) -> Self.Index Returns the position immediately after the given index.
func index(after: Self.Index
) -> Self.Index Returns the position immediately after the given index.
func index(after: Self.Index
) -> Self.Index Returns the position immediately after the given index.
Other members in extension
Instance members
var indices: Range<Self.Index>
The indices that are valid for subscripting the collection, in ascending order.
func distance(from: Self.Index, to: Self.Index
) -> Self.Index.Stride Returns the distance between two indices.
func index(Self.Index, offsetBy: Self.Index.Stride
) -> Self.Index Returns an index that is the specified distance from the given index.
func index(before: Self.Index
) -> Self.Index Returns the position immediately after the given index.