diff --git a/arraylist/arraylist.go b/list/list.go similarity index 99% rename from arraylist/arraylist.go rename to list/list.go index 4c601b0..2b55daa 100644 --- a/arraylist/arraylist.go +++ b/list/list.go @@ -31,6 +31,7 @@ func (e *Element) Prev() *Element { return e.list.elems[e.prev] } +//static linked list based array type List struct { elems []*Element diff --git a/arraylist/arraylist_test.go b/list/list_test.go similarity index 100% rename from arraylist/arraylist_test.go rename to list/list_test.go