Skip to content

Commit

Permalink
Compliance with SequentialIterator interface
Browse files Browse the repository at this point in the history
  • Loading branch information
lrleon committed Mar 20, 2021
1 parent 4dd1673 commit 2bb36b6
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 2bb36b6

Please sign in to comment.