diff --git a/slist.go b/slist.go index 6d17e25..dc27758 100644 --- a/slist.go +++ b/slist.go @@ -170,6 +170,12 @@ func (seq *Slist) CreateIterator() interface{} { return NewIterator(seq) } +func (it *Iterator) ResetFirst() interface{} { + + it.curr = it.listPtr.head + return it +} + func (it *Iterator) HasCurr() bool { return it.curr != nil }