Next: LinkedList-testing, Previous: LinkedList-enumerating, Up: LinkedList [Index]
Retrieve the first element of the list and return it, or error if the list is empty.
Retrieve the last element of the list and return it, or error if the list is empty.