mirror of
https://github.com/apple/swift-algorithms
synced 2026-11-24 04:17:48 +00:00
781 B
781 B
Trimming
Remove unwanted elements from the start, the end, or both ends of a collection.
Topics
Trimming Both Ends of a Collection
Swift/BidirectionalCollection/trimming(while:)Swift/BidirectionalCollection/trim(while:)-781azSwift/BidirectionalCollection/trim(while:)-6cbz3
Trimming from the Start
Swift/Collection/trimmingPrefix(while:)Swift/Collection/trimPrefix(while:)-2r8n8Swift/Collection/trimPrefix(while:)-93obt
Trimming from the End
Swift/BidirectionalCollection/trimmingSuffix(while:)Swift/BidirectionalCollection/trimSuffix(while:)-33ubjSwift/BidirectionalCollection/trimSuffix(while:)-3o6x9
Finding the Suffix of a Collection
Swift/BidirectionalCollection/suffix(while:)