Skip to content

Commit

Permalink
Merge pull request #2 from geniussportsgroup/develop
Browse files Browse the repository at this point in the history
Compliance with SequentialIterator interface
  • Loading branch information
lrleon authored Mar 20, 2021
2 parents cf47dbe + 2bb36b6 commit 9279901
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions slist.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,11 @@ func NewIterator(seq *Slist) *Iterator {
return it
}

func (seq *Slist) CreateIterator() interface{} {

return NewIterator(seq)
}

func (it *Iterator) HasCurr() bool {
return it.curr != nil
}
Expand Down

0 comments on commit 9279901

Please sign in to comment.