Proposal Update
The core team discussed this today, and we've decided to revise this proposal by including the rename of index(of:) to firstIndex(of:) and index(where:) to firstIndex(where:), as described in the alternatives section of the proposal.
Renaming functions must meet a fairly high bar, but we felt that this rename is worth considering because:
- It firmly establishes
first...andlast...as consistently-named families of analogous functions. - It leaves
index...to be just the index-manipulation functions such asindex(after:), which do not access the elements of the collection.
That is, it creates or reinforces a number of general patterns in the naming of functions on Collection.
Accordingly, the proposal will be revised to include these renames, and the review period has been extended to next Tuesday, April 10th.