Index

    The position of a key-value pair in a dictionary.

    @frozen struct Index

    Dictionary has two subscripting interfaces:

    1. Subscripting with a key, yielding an optional value:

      v = d[k]!
    2. Subscripting with an index, yielding a key-value pair:

      (k, v) = d[i]

    Other members in extension

    View members

    Hide members

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

    Types

    Typealiases

    Type members

    Instance members

    Citizens in Swift

    Conformances

    Type members

    Instance members

    Citizens in Swift

    where Key:Sendable, Value:Copyable, Value:Sendable, Value:Escapable

    Conformances

    Citizens in Swift

    where Value:Copyable, Value:Escapable

    Conformances

    Type features