Design decisions

155. Two-pointer results can be keyed by the left end (2026-11-21)

  • Decision. maximal and minimal take anchor: Anchor = Anchor.End; Anchor.Start returns 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_point over the right-keyed starts; the blind dream asked for longest_from. An option on the existing pass keeps one two-pointer vocabulary instead of a second function.
  • Reverse. Drop anchor: and Anchor from spec/std/seq.cp, the prelude and spec/lib/sequence-patterns.md.