mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-26 04:07:50 +00:00
Dictionary(sequence) documentation
This commit is contained in:
1 parent
a384051942
commit
0a8111a34d
1 file changed
+3
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user