221. Prefix(a) on a grid is the 2-D prefix (2026-11-22)
- Decision.
std.prefixdocumented a freeprefix(a)that std never defines; the constructor isPrefix(a), aslib/ops-ranges.mdwrites it. Ona: [R, C]T,Prefix(a)infersPrefix<R, C, T>and folds rectangles withfold(rows, cols); a one-rangefoldon it is E0303. Contestants who pass a grid want rectangle sums; a row-major 1-D table over the cells is never whatPrefix(grid)means. - Reverse. Make
Prefix(a)1-D over the product domain and requirePrefix<R, C, T>(a)for rectangles.