startOfSuffix(while:)
Returns the inclusive lower bound of the suffix of elements that satisfy the predicate.
func startOfSuffix(while predicate: (Element) throws -> Bool) rethrows -> Index Parameters
- predicate
A closure that takes an element of the collection as its argument and returns
trueif the element is part of the suffix orfalseif it is not. Once the predicate returnsfalseit will not be called again.