Files
collection/pkg/collection/iterator.go
Fabio Scotto di Santolo 61fd55fb5c Change module name
2023-01-05 15:12:42 +01:00

12 lines
167 B
Go

package collection
type Iterator[E any] interface {
HasNext() bool
Next() E
NextWithIndex() (int, E)
}
type Iterable[E any] interface {
Iterator() Iterator[E]
}