---
title: "indices(where:)"
framework: swift-package-manager
role: symbol
role_heading: Instance Method
path: "swift-package-manager/documentation/packageplugin/filelist/indices(where:)"
---

# indices(where:)

Inherited from Collection.indices(where:).

## Declaration

```swift
func indices(where predicate: (Self.Element) throws -> Bool) rethrows -> RangeSet<Self.Index>
```
