182. first and last are getters only; predicate searches are find and rfind (2026-11-21)
- Decision.
s.firstands.lastare O(1) getters returning?T. The predicate forms arefind(p)andrfind(p)(on anySeqandBidirrespectively, and onBitset).filter,map,rev,items,sortandsortedget stubs instd/seq.cp.sortandsortedare stable;sortedreturns a newListkeyed from 0. The adapter view types areFiltered,Mapped,RevandItems, so they never collide with the containerMap. - Why. The rebuild (H-MISSING-SEQ-STUBS, H-ONE-NAME-MANY-FORMS) found core names without stubs and
first/lastused both as getters and with a predicate, which R06.1.6 (one name and label set, one signature) forbids. Stable sorting makes tie order something the contestant never has to look up. - Reverse. Restore
first(p)/last(p)by giving the predicate a label (first(where: p)), or makesortunstable with a separatestable_sort.