155. Two-pointer results can be keyed by the left end (2026-11-21)
- Decision.
maximalandminimaltakeanchor: Anchor = Anchor.End;Anchor.Startreturns the longest (shortest) piece starting at each position from the same O(n) pass. - Why. Greedy jumping over groups ("the next lineup starts after the longest good run from
s") needs pieces by start. The coci21c2p5 port recovered them with a
partition_pointover the right-keyed starts; the blind dream asked forlongest_from. An option on the existing pass keeps one two-pointer vocabulary instead of a second function. - Reverse. Drop
anchor:andAnchorfromspec/std/seq.cp, the prelude andspec/lib/sequence-patterns.md.