Required Instance Methodswift 6.0.1Swift

    index(before:)

    Returns the position immediately before the given index.

    override func index(before i: Self.Index) -> Self.Index

    Parameters

    i

    A valid index of the collection. i must be greater than startIndex.

    Returns

    The index value immediately before i.

    Restates

    Other requirements

    View members

    Hide members

    This section is hidden by default because it contains too many (15) members.

    Type members

    Instance members

    Citizens in Swift

    Default implementations