Skip to content

Commit

Permalink
Removed IteratorFn
Browse files Browse the repository at this point in the history
  • Loading branch information
ziflex authored and Владимир Фетисов committed Apr 10, 2019
1 parent 63a248e commit b45f889
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions pkg/runtime/core/value.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit b45f889

Please sign in to comment.