Added accessors to ArrayInitializationValues

This commit is contained in:
2022-09-04 23:47:56 -04:00
parent 0cb6b2bf66
commit 319ed789bf
3 changed files with 54 additions and 3 deletions

View File

@@ -43,8 +43,8 @@ func (iterator Iterator[VALUE_TYPE]) Next () {
iterator.index ++
}
// AtEnd returns whether the iterator has reached the end of the map.
func (iterator Iterator[VALUE_TYPE]) AtEnd () (atEnd bool) {
// End returns whether the iterator has reached the end of the map.
func (iterator Iterator[VALUE_TYPE]) End () (atEnd bool) {
atEnd = iterator.index >= len(iterator.keys) || iterator.index < 0
return
}