Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (12 sloc) 308 Bytes
import array_factory
class ArrayList:
def __init__(self):
self._array = array_factory.create(100)
self.count = 0
def __len__(self):
return self.count
def get(self, index):
return self._array[index]
def append(self, value):
self._array[self.count] = value
self.count += 1
You can’t perform that action at this time.