filteredIndexSet(in:includeInteger:)
Returns an IndexSet filtered according to the result of includeInteger.
Declaration
func filteredIndexSet(in range: Range<IndexSet.Element>, includeInteger: (IndexSet.Element) throws -> Bool) rethrows -> IndexSetParameters
- range:
A range of integers. For each integer in the range that intersects the integers in the IndexSet, then the
includeIntegerpredicate will be invoked. - includeInteger:
The predicate which decides if an integer will be included in the result or not.