Okay here's one for the "make impossible states unrepresentable" crowd:
I have a list of items, precisely one of which is always selected.
How to represent this?
- per-item bool allows for 0 or more selection
- separate "selected" ID or index allows for invalid selection
10
2
17


