LinkedList.removeLastRead

removes the node that was last read using LinkedList.read. The last node cannot be removed using this.

It works by moving contents of next item into the last-read one, and removing the next node

class LinkedList(T)
bool
removeLastRead
()

Return Value

Type: bool

true in case the node/item was removed, false if not

Meta