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

# max(by:)

## Declaration

```swift
func max(by areInIncreasingOrder: (Output, Output) -> Bool) -> Just<Output>
```

## See Also

### Applying mathematical operations on elements

- [count()](combine/just/count().md)
- [max()](combine/just/max().md)
- [min()](combine/just/min().md)
- [min(by:)](combine/just/min(by:).md)
