<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Combine",
  "identifier" : "/documentation/Combine/Publisher/min()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Combine"
    ],
    "preciseIdentifier" : "s:7Combine9PublisherPAASL6OutputRpzrlE3minAA10PublishersO10ComparisonVy_xGyF"
  },
  "title" : "min()"
}
-->

# min()

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

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

## Return Value

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

## Discussion

Use [`min(by:)`](/documentation/Combine/Publisher/min(by:)) to find the minimum value in a stream of elements from an upstream publisher.

In the example below, the [`min(by:)`](/documentation/Combine/Publisher/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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)