From 14188b1515487ece3b5f994f53d7c3c45856438d Mon Sep 17 00:00:00 2001 From: siddontang Date: Wed, 16 Apr 2014 16:20:14 +0800 Subject: [PATCH] move to list --- arraylist/arraylist.go => list/list.go | 1 + arraylist/arraylist_test.go => list/list_test.go | 0 2 files changed, 1 insertion(+) rename arraylist/arraylist.go => list/list.go (99%) rename arraylist/arraylist_test.go => list/list_test.go (100%) 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