CrazyMax 34b9a629a0
vendor: update github.com/hashicorp/hcl/v2 to v2.19.1
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2023-10-19 14:49:10 +02:00

16 lines
207 B
Go

package set
type Iterator[T any] struct {
vals []T
idx int
}
func (it *Iterator[T]) Value() T {
return it.vals[it.idx]
}
func (it *Iterator[T]) Next() bool {
it.idx++
return it.idx < len(it.vals)
}