iterator.go: new interface ExtIterator derived from Iterator

This commit is contained in:
Celestino Amoroso 2024-05-04 00:28:17 +02:00
parent 7a0ba26aa3
commit 0dbb0ba515

View File

@ -13,6 +13,10 @@ type Iterator interface {
Next() (item any, err error) // must return io.EOF after the last item
Current() (item any, err error)
Index() int
}
type ExtIterator interface {
Iterator
HasOperation(name string) bool
CallOperation(name string, args []any) (value any, err error)
}