196. Making a number into a position or a modular number costs O(1) (2026-11-22)
- Decision. In a fn's estimated cost,
V(i)for a domainV,State(v, k)for a product domain, andZ(x)for a number struct such asMod<P>(3.10), or an alias of one (type Z = Mod<MOD>), costO(1)when every argument has a fixed size. Hovering the callee showscost: O(1). - Why. Each is a range check or one
new(x), and they were the most common blockers afterprint:Zblocked 6 fns andNode5. Fns incorpus/problemsand the examples with an estimate: 27 to 37 of 1,613. - Reverse. Drop the
convertscase incpl-check'scall.rsand thefixed_iocase inhover.rs.