I don't know the datatypes ahead of time, how can I add data to the empty dictionary without types. Looks like someone asked the same question here but no answer was accepted How to create Dictionary that can hold anything in Key? or all the possible type it capable to hold
Swift Compiler Error:
Cannot assign to the result of this expression.
I get this error in b["test"] = 23
this line.
var a = [String:Int]()
a["test"] = 23 # Works
var b = [:]
b["test"] = 23 # Compiler Error