[Capsule] Add tuple labels to iterator return values

This commit is contained in:
Michael Steindorfer committed 2022-08-09 17:20:28 +02:00
1 parent 3a8ee52e4a
commit 042d2ebe2e
1 file changed
+2 -2
+2 -2
View File
@@ -184,7 +184,7 @@ public struct MapKeyValueTupleIterator<Key: Hashable, Value> {
}
extension MapKeyValueTupleIterator: IteratorProtocol {
public mutating func next() -> (Key, Value)? {
public mutating func next() -> (key: Key, value: Value)? {
guard baseIterator.hasNext() else { return nil }
let payload: (Key, Value)
@@ -211,7 +211,7 @@ public struct MapKeyValueTupleReverseIterator<Key: Hashable, Value> {
}
extension MapKeyValueTupleReverseIterator: IteratorProtocol {
public mutating func next() -> (Key, Value)? {
public mutating func next() -> (key: Key, value: Value)? {
guard baseIterator.hasNext() else { return nil }
let payload: (Key, Value)