Next returns the next value in the iteration if there is one, and reports whether the returned value is valid. Once Next returns ok==false, the iteration is over, and all subsequent calls will return ok==false.
()
| 25 | // Once Next returns ok==false, the iteration is over, |
| 26 | // and all subsequent calls will return ok==false. |
| 27 | Next() (item T, ok bool) |
| 28 | } |
| 29 | |
| 30 | // ResettableIterator supports to reset the iterator |
no outgoing calls