Skip to content

Commit

Permalink
Had to undo parts of pull request Minor Dictionary changes #13 beca…
Browse files Browse the repository at this point in the history
…use forEach it did not compile.
  • Loading branch information
dwarfland committed Jun 15, 2020
1 parent a3d6297 commit 3e4e711
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Source/Dictionary.swift
Original file line number Diff line number Diff line change
Expand Up @@ -334,12 +334,12 @@ public struct Dictionary<Key, Value> /*: INSFastEnumeration<T>*/
dictionary = PlatformDictionary<Key,Value>()
unique = true
}
public func forEach(_ body: ((key: Key, value: Value)) throws -> Void) rethrows {
for item in self {
try body(item)
}
}

//public func forEach(_ body: ((key: Key, value: Value)) throws -> Void) rethrows {
//for item in self {
//try body(item)
//}
//}

public var count: Int {
#if JAVA
Expand Down

0 comments on commit 3e4e711

Please sign in to comment.