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

# init(_:)

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

## Declaration

```swift
init<S>(_ upstream: S) where Upstream == S.Element, S : Sequence
```

## Parameters

- `upstream`: A sequence containing zero or more publishers to merge with this publisher.

## See Also

### Creating a merge many publisher

- [init(_:)](combine/publishers/mergemany/init(_:)-1hsqd.md)
