289. A range's keys are its own elements; r.nth(k) reads by position (2026-11-22)
- Decision. Ryan: "r[3] should be equal to 3". For
r = 2..5,r[x] == xforx in rand traps outside it,r.keysisr, andr.itemswalks(2, 2) (3, 3) (4, 4)(R04.4.31). The positional read is the existingnth(k)every slice has (R04b.1.4):r.nth(0) == 2(R04.4.32). No new name. - Why. A
Range<V>keyed byIntpositions mixes two index spaces; keys as elements keep ranges the slices of R07.2.14 without the source, soRange<V>staysIndexed<V, V>.nthalready means "k steps from the start". - Reverse. Change R04.4.31 and the three
Rangecases inspec/conformance/traits.tomlandcore-04/range-key-*.cpto positions.