Splice in p between current cell and whatever it was previously pointing to
Make a copy of the list; i.e., a new list containing new cells but including the same elements in the same order
Count the number of occurrences of element in list
Return the number of cells in the list
add support for keys also?
add support for keys also?
Cause current cell to skip over the current next() one, effectively removing the next element from the list
dup is shallow; i.e., just makes a copy of the current cell
Linear search down the list looking for element
add support for keys also?
add support for keys also?
add support for keys also?
Return the number of cells traversed to find first occurrence of a cell with element() element, or -1 if not present
add support for keys also?
add support for keys also?
Return the nth cell of the list, or null if no such
add support for keys also?
Set to point to n as next cell
Return the cell representing the last element of the list (i.e., the one whose next() is null
Basic linkedlist merge algorithm. Merges the lists head by fst and snd with respect to cmp
Standard merge sort algorithm
Standard list splitter, used by sort. Splits the list in half. Returns the head of the second half