apple / swift-algorithms

Commonly used sequence and collection algorithms for Swift
Apache License 2.0
5.9k stars 435 forks source link

Update Suffix.swift #186

Closed mattyoung closed 9 months ago

mattyoung commented 2 years ago

Change endOfPrefix(while:) and startOfSuffix(while:) from internal to public

These two functions are generally useful so they should be public instead of internal See https://forums.swift.org/t/should-there-be-bidirectionalcollection-droplast-while/48059/14 and https://forums.swift.org/t/endofprefix-while-and-startofsuffix-while-should-be-public-instead-of-internal/56855

Checklist

lucianopa-msft commented 2 years ago

Since we are making those public, couple of points are think are worth mention:

natecook1000 commented 9 months ago

Landing this change in #211.