Returns the list that has head in front of the list tail.
Returns the first item of a list that is not empty.
Returns a list that is not empty without its first item.
Returns the number of items of a list.
Yields the items of a list from its head to its end.
Holds immutable lists of 32-bit integers. A list is the empty list, or a head in front of a tail that is a list of the same pool. The pool gives equal lists the same id, so two lists are equal when their ids are equal, and lists that end alike share their tails. A stack is such a list, and so is each half of a tape.
constakes constant expected time.head,tailandlengthtake constant time. A pool with a budget charges oneResource.Cellsfor each new list.