---
title: "init(_:_:)"
framework: combine
role: symbol
role_heading: Initializer
path: "combine/publishers/merge/init(_:_:)"
---

# init(_:_:)

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

## Declaration

```swift
init(_ a: A, _ b: B)
```

## Parameters

- `a`: A publisher to merge
- `b`: A second publisher to merge.
