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

# merge(with:)

Combines elements from this publisher with those from another publisher of the same type, delivering an interleaved sequence of elements.

## Declaration

```swift
func merge(with other: Upstream) -> Publishers.MergeMany<Upstream>
```

## Parameters

- `other`: Another publisher of this publisher’s type.

## Return Value

Return Value A publisher that emits an event when either upstream publisher emits an event.
