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

# init(_:_:)

Creates a publisher that applies the zip function to two upstream publishers.

## Declaration

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

## Parameters

- `a`: A publisher to zip.
- `b`: Another publisher to zip.
