---
title: "contains(where:)"
framework: swift
role: symbol
role_heading: Instance Method
path: "swift/result/publisher-swift.struct/contains(where:)"
---

# contains(where:)

## Declaration

```swift
func contains(where predicate: (Result<Success, Failure>.Publisher.Output) -> Bool) -> Result<Bool, Failure>.Publisher
```
