diff --git a/arraylist.hpp b/arraylist.hpp index 43b83f5..25a99fc 100644 --- a/arraylist.hpp +++ b/arraylist.hpp @@ -19,6 +19,11 @@ struct Array_List { data = 0; } + + void clear() { + next_index = 0; + } + Array_List clone() { Array_List ret; ret.length = length;