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
true
if the element is part of the suffix orfalse
if it is not. Once the predicate returnsfalse
it will not be called again.