List is a basic linear data structure.
Variations: Nonempty List, Scrolling List
Supertype (List item) ~ Maybe (Nonempty List item)
Available methods (Stack):
pop: Transition `T'I` List item `T'I` Optional item
push: item `AR_` Transition `T'I` List item `T'I` item
How to construct an empty list:
by `hv` Empty @List
How to construct a non-empty list:
by `hv_` List @Integer `ha` Item 1 `ha` Next `ha` Item 3 `ha` Last
You can traverse a List but you have to specify in which order you want to do it:
items `yokl` Forth `ha` Run `ha` output `AR____` 1, 2, 3, 4, 5, 6, 7, 8, 9
items `yokl` Prior `ha` Run `ha` output `AR____` 9, 8, 7, 6, 5, 4, 3, 2, 1