class documentation
class DynamicArray:
A dynamic array class akin to a simplified Python list.
| Method | __getitem__ |
Return element at index k. |
| Method | __init__ |
Create an empty array. |
| Method | __len__ |
Return number of elements stored in the array. |
| Method | append |
Add object to end of the array. |
| Method | insert |
Insert value at index k, shifting subsequent values rightward. |
| Method | remove |
Remove first occurrence of value (or raise ValueError). |
| Method | _make |
Return new array with capacity c. |
| Method | _resize |
Resize internal array to capacity c. |
| Instance Variable | _A |
Undocumented |
| Instance Variable | _capacity |
Undocumented |
| Instance Variable | _n |
Undocumented |