Iterator actually advances now

This commit is contained in:
2022-09-29 17:34:51 -04:00
parent b2cc45abec
commit ed4c9aa0d2
6 changed files with 34 additions and 47 deletions

View File

@@ -39,7 +39,7 @@ func (iterator Iterator[VALUE_TYPE]) Value () (value VALUE_TYPE) {
}
// Next advances the iterator by 1.
func (iterator Iterator[VALUE_TYPE]) Next () {
func (iterator *Iterator[VALUE_TYPE]) Next () {
iterator.index ++
}