# Should there be BidirectionalCollection.dropLast(while:)?

**URL:** <https://forums.swift.org/t/should-there-be-bidirectionalcollection-droplast-while/48059>\
**Category:** Using Swift\
**Created:** [May 10, 2021, 8:41pm UTC](https://forums.swift.org/t/should-there-be-bidirectionalcollection-droplast-while/48059 "2021-05-10T20:41:13Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![young](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/young/32/7878_2.png) [@young](https://forums.swift.org/u/young)\
**Post date:** [April 20, 2022, 3:49pm UTC](https://forums.swift.org/t/should-there-be-bidirectionalcollection-droplast-while/48059/11 "2022-04-20T15:49:10Z")

</div>

Why are `endOfPrefix(while:)` and `startOfSuffix(while:)` `internal`? They seem to be generally useful.

---

_[View the full topic](https://forums.swift.org/t/should-there-be-bidirectionalcollection-droplast-while/48059)._
