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)
-
Declaration
Swift
public init(stringLiteral value: String)
-
Declaration
Swift
public init(extendedGraphemeClusterLiteral value: String)
-
Declaration
Swift
public init(unicodeScalarLiteral value: String)
-
Declaration
Swift
public init(arrayLiteral elements: String...)