aboutsummaryrefslogtreecommitdiffstats
path: root/examples/tally.aup
Commit message (Collapse)AuthorAgeFilesLines
* Add keyed lists and text comparisoneunhhu2026-09-261-0/+32
state xs: list of R by field keeps its items in that field's order, each key once: xs.add(R { ... }) places an item (a taken key fails the event with exists), xs[key] finds one by halving (its field, or its index), xs.has(key) asks, xs.remove(key) removes. append and insert are refused on a keyed list, add on another, and a key field is never assigned. Texts compare with == != < <= > >= by their bytes. Checked against a Python model over 3,600 random steps with a text-keyed and a number-keyed list; 13 diagnostics; examples/tally.aup.