349. On Int keys, pre[k] is the cut: the fold of the first k (2026-11-23)
R07.1.6 indexes a scan by cuts and lets a position fold through itself, but on a List or [n]T both are Int, so pre[k] read two ways one element apart, a silent WA (rebuild 8, H-INT-KEY-PREFIX). Rule: an Int index is the cut, n + 1 entries, pre[0] the identity, as in every C++ prefix array; the fold through k is pre[k + 1], and a domain makes the distinction typed. Reason: the scan has one entry per cut, and the cut reading is the one contestants already write. Reverse: make an Int index a position and write cuts as pre.prefix(k).