BidirectionalCollection
extension BidirectionalCollection
-
Trims the suffix where the
foundfunction/closure keeps returning trueComplexity
O(self.count).Declaration
Swift
public func trimWhile(_ found: (Iterator.Element) -> Bool) -> SubSequence
View on GitHub
Install in Dash
BidirectionalCollection Extension Reference