ResettableIterator supports to reset the iterator
| 29 | |
| 30 | // ResettableIterator supports to reset the iterator |
| 31 | type ResettableIterator[T any] interface { |
| 32 | Iterator[T] |
| 33 | // Reset allows for the iteration process over a sequence to be restarted from the beginning. |
| 34 | // It enables reusing the iterator for multiple traversals without needing to recreate it. |
| 35 | Reset() |
| 36 | } |
| 37 | |
| 38 | // StopIterator is an interface for stopping Iterator. |
| 39 | type StopIterator[T any] interface { |
no outgoing calls
no test coverage detected
searching dependent graphs…