From 2bb36b6a4f46761cb303bf407c450a370b08a679 Mon Sep 17 00:00:00 2001 From: lrleon Date: Sat, 20 Mar 2021 14:37:24 -0500 Subject: [PATCH] Compliance with SequentialIterator interface --- slist.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/slist.go b/slist.go index 09517a6..6d17e25 100644 --- a/slist.go +++ b/slist.go @@ -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 }