282cd097f9
Bumps [github.com/hashicorp/terraform-plugin-sdk/v2](https://github.com/hashicorp/terraform-plugin-sdk) from 2.20.0 to 2.24.1. - [Release notes](https://github.com/hashicorp/terraform-plugin-sdk/releases) - [Changelog](https://github.com/hashicorp/terraform-plugin-sdk/blob/main/CHANGELOG.md) - [Commits](https://github.com/hashicorp/terraform-plugin-sdk/compare/v2.20.0...v2.24.1) --- updated-dependencies: - dependency-name: github.com/hashicorp/terraform-plugin-sdk/v2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
16 lines
207 B
Go
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)
|
|
}
|