[Pitch] Add `ends(with:)` to `BidirectionalCollection`
Swift Forums
[Pitch] Add `ends(with:)` to `BidirectionalCollection`
Add ends(with:) to BidirectionalCollection Proposal: SE-NNNN Author: Mateus Rodrigues Introduction The standard library offers starts(with:) for checking whether a sequence begins with the elements of another sequence. There is no counterpart for testing whether a collection ends with another collection. This proposal adds ends(with:) to BidirectionalCollection, adopting the API that have been shipping in swift-algorithms. Motivation Checking a suffix is as common as checking a prefix and NSP...
0 comments
No comments yet.