[swift-evolution] Proposal: Add a sequence-based initializer to Dictionary
Brent Royal-Gordon
brent at architechies.com
Thu Jan 14 18:31:53 CST 2016
> One caveat is that the new initializer doesn't prevent using a sequence with multiple identical keys. In such a case, the last key/value would "win" and exist in the dictionary.
Another alternative would be to make the initializer failable and have it fail if a key is duplicated.
--
Brent Royal-Gordon
Architechies
More information about the swift-evolution
mailing list