We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b4db31a commit b28c3dcCopy full SHA for b28c3dc
1 file changed
Sources/Apollo/Collections.swift
@@ -1,17 +1,3 @@
1
-extension Dictionary {
2
- subscript(key: Key, withDefault value: @autoclosure () -> Value) -> Value {
3
- mutating get {
4
- if self[key] == nil {
5
- self[key] = value()
6
- }
7
- return self[key]!
8
9
- set {
10
- self[key] = newValue
11
12
13
-}
14
-
15
public extension Dictionary {
16
static func += (lhs: inout Dictionary, rhs: Dictionary) {
17
#if swift(>=3.2)
@@ -58,7 +44,7 @@ extension GroupedSequence: Sequence {
58
44
struct GroupedSequenceIterator<Key: Equatable, Value>: IteratorProtocol {
59
45
private var base: GroupedSequence<Key, Value>
60
46
61
- private var keyIterator: EnumeratedIterator<IndexingIterator<Array<Key>>>
47
+ private var keyIterator: EnumeratedSequence<Array<Key>>.Iterator
62
48
63
49
init(base: GroupedSequence<Key, Value>) {
64
50
self.base = base
0 commit comments