mirror of
https://github.com/MontFerret/ferret.git
synced 2025-07-13 01:20:35 +02:00
Removed IteratorFn
This commit is contained in:
@ -49,11 +49,4 @@ type (
|
||||
Value Value
|
||||
Types []Type
|
||||
}
|
||||
|
||||
// IteratorFn represents an helper type to create closure based Iterator interface implementation.
|
||||
IteratorFn = func(ctx context.Context) (value Value, key Value, err error)
|
||||
)
|
||||
|
||||
func (fn IteratorFn) Next(ctx context.Context) (value Value, key Value, err error) {
|
||||
return fn(ctx)
|
||||
}
|
||||
|
Reference in New Issue
Block a user