1
1
mirror of https://github.com/github/semantic.git synced 2024-11-24 08:54:07 +03:00

Dictionary.init(elements:) is public.

This commit is contained in:
Rob Rix 2015-10-07 19:36:53 -04:00
parent 16a933af86
commit eb62a4e08f

View File

@ -1,5 +1,5 @@
extension Dictionary {
init<C: CollectionType where C.Generator.Element == (Key, Value)>(elements: C) {
public init<C: CollectionType where C.Generator.Element == (Key, Value)>(elements: C) {
self.init(minimumCapacity: Int(elements.count.toIntMax()))
for (key, value) in elements {
self[key] = value