startOfSuffix(while:)

Returns the inclusive lower bound of the suffix of elements that satisfy the predicate.

Suffix.swift:75
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 or false if it is not. Once the predicate returns false it will not be called again.