aboutsummaryrefslogtreecommitdiffhomepage
path: root/vendor/github.com/zclconf/go-cty/cty/set/iterator.go
blob: 4a60494f9d6b299d4287beff8248628cb4e2c02d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package set

type Iterator struct {
	vals []interface{}
	idx  int
}

func (it *Iterator) Value() interface{} {
	return it.vals[it.idx]
}

func (it *Iterator) Next() bool {
	it.idx++
	return it.idx < len(it.vals)
}