Next checks if there is a next value in the iteration or not
()
| 20 | type Iterator[T any] interface { |
| 21 | // Next checks if there is a next value in the iteration or not |
| 22 | HasNext() bool |
| 23 | // Next returns the next value in the iteration if there is one, |
| 24 | // and reports whether the returned value is valid. |
| 25 | // Once Next returns ok==false, the iteration is over, |
no outgoing calls