Dictionary(sequence) documentation

This commit is contained in:
Gwendal Roué committed 2016-01-15 08:22:55 +01:00
1 parent a384051942
commit 0a8111a34d
1 file changed
+3 -1
+3 -1
View File
@@ -573,7 +573,9 @@ extension StatementArguments : CustomStringConvertible {
extension Dictionary {
init<Sequence: SequenceType where Sequence.Generator.Element == (Key, Value)>(_ sequence: Sequence) {
/// Creates a dictionary with the keys and values in the given sequence.
init<Sequence: SequenceType where Sequence.Generator.Element == Generator.Element>(_ sequence: Sequence) {
self.init(minimumCapacity: sequence.underestimateCount())
for (key, value) in sequence {
self[key] = value