KeyPath

public struct KeyPath

KeyPath represents the path to a specific node in a tree of nested dictionaries.

Can be created from string and array literals and can be joined by the => operator.

let a: KeyPath = "a"
let b: KeyPath = ["a", "b"]
let c: KeyPath = "a" => "b" => "c"
  • Undocumented

    Declaration

    Swift

    public var keys: [String]
  • Undocumented

    Declaration

    Swift

    public init(_ keys: [String])
  • Undocumented

    Declaration

    Swift

    public init(_ key: String)