Dictionary

extension Dictionary where Key == AnyNodeID
extension Dictionary where Key == AnyDeclID
extension Dictionary where Key == AnyExprID
extension Dictionary where Key == AnyPatternID
extension Dictionary: Monotonic where Value: Monotonic

Available where Key == AnyNodeID

Available where Key == AnyDeclID

  • Accesses the Property this map associates with n.

    Declaration

    Swift

    public subscript<T>(n: T) -> Value? where T : DeclID { get set }
  • Accesses the Property this map associates with n, or defaultProperty if this map makes no such association.

    Declaration

    Swift

    public subscript<T>(n: T, default defaultProperty: @autoclosure () -> Value) -> Value where T : DeclID { get set }

Available where Key == AnyExprID

  • Accesses the Property this map associates with n.

    Declaration

    Swift

    public subscript<T>(n: T) -> Value? where T : ExprID { get set }
  • Accesses the Property this map associates with n, or defaultProperty if this map makes no such association.

    Declaration

    Swift

    public subscript<T>(n: T, default defaultProperty: @autoclosure () -> Value) -> Value where T : ExprID { get set }

Available where Key == AnyPatternID

  • Accesses the Property this map associates with n.

    Declaration

    Swift

    public subscript<T>(p: T) -> Value? where T : PatternID { get set }
  • Accesses the Property this map associates with n, or defaultProperty if this map makes no such association.

    Declaration

    Swift

    public subscript<T: PatternID>(
      p: T, default defaultProperty: @autoclosure () -> Value
    ) -> Value

Available where Value: Monotonic