143. Identity everywhere; keys in, keys out (2026-11-21)
- Decision. Every slice keeps its source's keys,
ListandStrincluded (s[2..5][3] == s[3]), replacing the hybrid in 138. Library functions answer in the keys they were given:findandfind_allgive keys,z_function,prefix_functionandprefix_matchesgive[K]Intkeyed by the input, rotations and Lyndon starts are keys. Combining two sequences pairs by walk order (zipis keyed by its first argument). Relative access isw.first,w.nth(k)andw.rebase(a fresh0..lendomain);t.rekey(r)re-keys equal-length cells..collect()of an indexed view keeps keys;List(w)/Str(w)count from 0. Lints flag a literal slice index and a 0-based counter used as a slice key.nth_elementis renamedselectsonthmeans one thing. - Why.
04a-identity-vs-offset.md: offset is silently wrong whenever an index crosses a slice boundary; identity traps instead. Ryan: "library functions should always operate in the domain they were given".04b-keys.mdshows contest, helper and library code. - Reverse. Restore the hybrid:
List/Strslices count from 0, and the string results go back toList<Int>offsets.