Adds an element to the list (typically at the end).
The value to add
Adds an element to the beginning of the list.
The value to add
Adds an element to the end of the list.
The value to add
Checks if the list contains a specific value.
The value to search for
True if the value exists in the list, false otherwise
Returns the index of the first occurrence of the specified value.
The value to search for
The index of the value, or -1 if not found
Interface for list data structures.