<!--
{
  "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/Publishers/Merge5",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Combine"
    ],
    "preciseIdentifier" : "s:7Combine10PublishersO6Merge5V"
  },
  "title" : "Publishers.Merge5"
}
-->

# Publishers.Merge5

A publisher created by applying the merge function to five upstream publishers.

```
struct Merge5<A, B, C, D, E> where A : Publisher, B : Publisher, C : Publisher, D : Publisher, E : Publisher, A.Failure == B.Failure, A.Output == B.Output, B.Failure == C.Failure, B.Output == C.Output, C.Failure == D.Failure, C.Output == D.Output, D.Failure == E.Failure, D.Output == E.Output
```

## Topics

### Creating a merge-five publisher

[`init(_:_:_:_:_:)`](/documentation/Combine/Publishers/Merge5/init(_:_:_:_:_:))

Creates a publisher created by applying the merge function to five upstream publishers.

### Merging elements

[`merge(with:)`](/documentation/Combine/Publishers/Merge5/merge(with:))

[`merge(with:_:)`](/documentation/Combine/Publishers/Merge5/merge(with:_:))

[`merge(with:_:_:)`](/documentation/Combine/Publishers/Merge5/merge(with:_:_:))

### Declaring supporting types

[`Output`](/documentation/Combine/Publishers/Merge5/Output)

The kind of values published by this publisher.

[`Failure`](/documentation/Combine/Publishers/Merge5/Failure)

The kind of errors this publisher might publish.

### Inspecting publisher properties

[`a`](/documentation/Combine/Publishers/Merge5/a)

A publisher to merge.

[`b`](/documentation/Combine/Publishers/Merge5/b)

A second publisher to merge.

[`c`](/documentation/Combine/Publishers/Merge5/c)

A third publisher to merge.

[`d`](/documentation/Combine/Publishers/Merge5/d)

A fourth publisher to merge.

[`e`](/documentation/Combine/Publishers/Merge5/e)

A fifth publisher to merge.

### Comparing publishers

[`==(_:_:)`](/documentation/Combine/Publishers/Merge5/==(_:_:))

Returns a Boolean value that indicates whether two publishers are equivalent.

## Relationships

### Conforms To

[`Publisher`](/documentation/Combine/Publisher)

[`Equatable`](/documentation/Swift/Equatable)

---

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)