---
title: "merge(with:)"
framework: combine
role: symbol
role_heading: Instance Method
path: "combine/publishers/merge7/merge(with:)"
---

# merge(with:)

## Declaration

```swift
func merge<P>(with other: P) -> Publishers.Merge8<A, B, C, D, E, F, G, P> where P : Publisher, G.Failure == P.Failure, G.Output == P.Output
```
