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.
imust be less thanendIndex.
Returns
The index value immediately after i.
Returns the position immediately after the given index.
func index(after i: Self.Index) -> Self.Index sSksSx5IndexRpzSnyABG7IndicesRtzSiAA_6StrideRTzrlE5index5afterA2B_tF What are these?4ZLQ6where Self.Index:Strideable, Self.Index.Stride == Int, Self.Indices == Range<Self.Index>A valid index of the collection. i must be less than endIndex.
The index value immediately after i.
import Swiftprotocol RandomAccessCollection<Element> : BidirectionalCollection where Self.Indices : RandomAccessCollection, Self.SubSequence : RandomAccessCollectionA collection that supports efficient random-access index traversal.
associatedtype Index : Comparable where Self.Index == Self.Indices.Element, Self.Indices.Element == Self.Indices.Index, Self.Indices.Index == Self.SubSequence.IndexA type that represents a position in the collection.
protocol Strideable<Stride> : ComparableA type representing continuous, one-dimensional values that can be offset and measured.
@frozen struct IntA signed integer value type.
@frozen struct Range<Bound> where Bound : ComparableA half-open interval from a lower bound up to, but not including, an upper bound.
override func index(after i: Self.Index) -> Self.Index Returns the position immediately after the given index.
override func index(after i: Self.Index) -> Self.Index Returns the position immediately after the given index.
func index(after i: Self.Index) -> Self.Index Returns the position immediately after the given index.
var indices: Range<Self.Index> { get }The indices that are valid for subscripting the collection, in ascending order.
func distance(from start: Self.Index, to end: Self.Index) -> Self.Index.Stride Returns the distance between two indices.
func index(_ i: Self.Index, offsetBy distance: Self.Index.Stride) -> Self.Index Returns an index that is the specified distance from the given index.
func index(before i: Self.Index) -> Self.Index Returns the position immediately after the given index.