Variation of a List that lets you move back and forwads switching focused item with O(n)
.
is @(Nonempty List _) `ho` to @(Scrolling List)
The easiest way to build a Scrolling List is to transform a Nonempty List:
is @(Nonempty List _) `ho` to @(Scrolling List)
You also can use ya-literal package to define it, focused item is the very first one:
items = [1, 2, 3, 4, 5, 6, 7, 8, 9] `yi` is @(Scrolling List Integer)