Implements Array, Stack, Queue, Deque, LinkedList, DoublyLinkedList, List(Dynamic Array).
Common functions for each class.
first()
Gets the first element.last()
Gets the last element.add()
Adds element to list in the last.insert(index)
Inserts element at a specificindex
.indexOf(element)
Returns the index of first apprearance of the element.remove(element)
Removes the first appearance of the element.removeAt(index)
Removes the element present at the given index.sort()
Sorts the container.