<!--
{
  "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/Merge3/merge(with:_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Combine"
    ],
    "preciseIdentifier" : "s:7Combine10PublishersO6Merge3V5merge4with___AC6Merge7Vy_xq_q0_qd__qd_0_qd_1_qd_2_Gqd___qd_0_qd_1_qd_2_tAA9PublisherRd__AaKRd_0_AaKRd_1_AaKRd_2_7FailureQyd__ALRt0_6OutputQyd__AORt0_ALQyd_0_AMRSAOQyd_0_APRSALQyd_1_ARRSAOQyd_1_ASRSALQyd_2_ATRSAOQyd_2_AURSr2_lF"
  },
  "title" : "merge(with:_:_:_:)"
}
-->

# merge(with:_:_:_:)

```
func merge<Z, Y, X, W>(with z: Z, _ y: Y, _ x: X, _ w: W) -> Publishers.Merge7<A, B, C, Z, Y, X, W> where Z : Publisher, Y : Publisher, X : Publisher, W : Publisher, C.Failure == Z.Failure, C.Output == Z.Output, Z.Failure == Y.Failure, Z.Output == Y.Output, Y.Failure == X.Failure, Y.Output == X.Output, X.Failure == W.Failure, X.Output == W.Output
```

---

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)