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

# last(where:)

## Declaration

```swift
func last(where predicate: (Output) -> Bool) -> Optional<Output>.Publisher
```

## See Also

### Selecting specific elements

- [first()](combine/just/first().md)
- [first(where:)](combine/just/first(where:).md)
- [last()](combine/just/last().md)
- [output(at:)](combine/just/output(at:).md)
- [output(in:)](combine/just/output(in:).md)
