We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e002329 commit c9370aaCopy full SHA for c9370aa
behavioral/iterator.go
@@ -14,9 +14,6 @@ type Iterator interface {
14
15
// Next increments the iterator to point to the next element.
16
Next()
17
-
18
- // End sets the iterator to point to the end element.
19
- End()
20
}
21
22
// ArrayIterator is an iterator which iterates over an array.
@@ -49,8 +46,3 @@ func (i *ArrayIterator) Next() {
49
46
i.index++
50
47
51
48
52
53
-// End sets the iterator to point to the end element.
54
-func (i *ArrayIterator) End() {
55
- i.index = len(i.array) - 1
56
-}
0 commit comments