Variation of a List that contains at least one element so it cannot be empty.
Available methods (Stackable):
pop: Transition `T'I` Nonempty List item `T'I` Optional item
push: item `AR_` Transition `T'I` Nonempty List item `T'I` item
How to build a singleton using intro method:
intro @(Nonempty List) 1 ===> [1]
The easiest way to define it is to use ya-literal package:
items = [1, 2, 3, 4, 5, 6, 7, 8, 9]
You can traverse a Nonempty List but you have to specify in which order you want to do it:
items `yokl` Forth `ha` World `ha` output ===> 123456789
items `yokl` Prior `ha` World `ha` output ===> 987654321