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

# tryContains(where:)

## Declaration

```swift
func tryContains(where predicate: (Result<Success, Failure>.Publisher.Output) throws -> Bool) -> Result<Bool, any Error>.Publisher
```
