---
title: min()
framework: combine
role: symbol
role_heading: Instance Method
path: combine/publisher/min()
---

# min()

Publishes the minimum value received from the upstream publisher, after it finishes.

## Declaration

```swift
func min() -> Publishers.Comparison<Self>
```

## Return Value

Return Value A publisher that publishes the minimum value received from the upstream publisher, after the upstream publisher finishes.

## Discussion

Discussion Use min(by:) to find the minimum value in a stream of elements from an upstream publisher. In the example below, the min(by:) operator emits a value when the publisher finishes, that value is the minimum of the values received from upstream, which is -1. let numbers = [-1, 0, 10, 5] numbers.publisher     .min()     .sink { print("\($0)") }

// Prints: "-1" After this publisher receives a request for more than 0 items, it requests unlimited items from its upstream publisher.

## See Also

### Applying mathematical operations on elements

- [count()](combine/publisher/count().md)
- [max()](combine/publisher/max().md)
- [max(by:)](combine/publisher/max(by:).md)
- [tryMax(by:)](combine/publisher/trymax(by:).md)
- [min(by:)](combine/publisher/min(by:).md)
- [tryMin(by:)](combine/publisher/trymin(by:).md)
