55. Comb<M> keyed on Mod<P> type (2026-11-21)
Comb<M>replacesComb<P>as the single combinatorics table spelling (supersedes 40.1).Comb<M>takes the modular typeM = Mod<P>directly —type Z = Mod<998_244_353>; let comb = Comb<Z>(n)(or inlineComb<Mod<P>>(n)) — so the modulus is written once for both compile-time and runtime moduli, and there is one way per job instead of bothComb<P>andZ.comb().Comb<M>(limit)pre-sizesfandgto exact capacitylimit + 1(clamped atM.MOD), while lazyensure(n)continues to double capacity for amortized O(1) growth. All ports, tests, examples, docs, and snippets are migrated in the same commit. Reverse: changepub struct Comb<M>back topub struct Comb<P>instdlib/mod.cp(replacingMwithMod<P>andM.MODwithP) and rewriteComb<Z>callers back toComb<P>orComb<Z.MOD>.