---
title: "tryContains(where:)"
framework: combine
role: symbol
role_heading: Instance Method
path: "combine/just/trycontains(where:)"
---

# tryContains(where:)

## Declaration

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

## See Also

### Applying matching criteria to elements

- [contains(_:)](combine/just/contains(_:).md)
- [contains(where:)](combine/just/contains(where:).md)
- [allSatisfy(_:)](combine/just/allsatisfy(_:).md)
- [tryAllSatisfy(_:)](combine/just/tryallsatisfy(_:).md)
