Collection
extension Collection
-
Returns an index set containing the indices that satisfy the given predicate.
Declaration
Swift
func indices(where predicate: (Element) throws -> Bool) rethrows -> IndexSet