I would like to set the value of a key of a key in swift 4. Is this possible?
For example if we have
var d:[String:Any] = [:]
I see there is a function 'updateValue'
d.updateValue([:], forKey: "a")
But what I want to be able to do is:
d.updateValue([:], forKey: "a.b.c")
which would be expected to resolve to
{"a" : { "b" : { "c" : {} }
instead of
{"a.b.c" : {} }
thanks