The type of data stored in the list
This.list is a special ListItem whose next property points to the head of the list and whose prev property points to the tail. This lets us relink the head and tail items in the same way as any other item in the list, without having to handle special cases.
The data items that form the initial list
An iterator for the list in forward order
Insert a new item into a sorted list in the correct locations
The LinkedList object (for chaining)
Merge a sorted list with another sorted list
The list to merge into this instance's list
The function used to order the data
The LinkedList instance (for chaining)
Pop the end item off the list and return its data
The data from the last item in the list
Push items on the end of the list
The list of data items to be pushed
The LinkedList object (for chaining)
Remove items from the list
The items to remove
The LinkedList object (for chaining)
An iterator for the list in reverse order
Remove an item from the head of the list and return its data
The data from the first item in the list
Sort the list using an optional sort function
The LinkedList object (for chaining)
Push items at the head of the list
The list of data items to inserted
The LinkedList object (for chaining)
Implements the generic LinkedList class