Singly linked lists stored in a caller-owned arena.
Types
List | A persistent singly linked list in an arena: a cell holding the first element and the rest, or the empty list. |
Cons | One cell of a List: an element and the list after it. |
ListBuilder! | A list built front to back in one pass: push links a new last cell after the previous one, so the list comes out in push order with one cell per element and no recursion. |
ListIter! | A list's items, read under the capability a context lends (Access). |
Instances
Iterator[ListIter![T, 'k, C, R] -> T] | The list's elements in order, read under the capability the iterator holds. |
Instance declarations
instance Iterator[ListIter![T, 'k, C, R] -> T]source
forall T, 'k, C, R where Copy[T].
instance Iterator[ListIter![T, 'k, C, R] -> T] { ... }
The list's elements in order, read under the capability the iterator holds.