mirror of
https://codeberg.org/scip/tablizer.git
synced 2025-12-17 20:41:03 +01:00
added
This commit is contained in:
15
vendor/github.com/zclconf/go-cty/cty/set/iterator.go
generated
vendored
Normal file
15
vendor/github.com/zclconf/go-cty/cty/set/iterator.go
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user