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

# first(where:)

Inherited from Sequence.first(where:).

## Declaration

```swift
func first(where predicate: (Self.Element) throws -> Bool) rethrows -> Self.Element?
```
