<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Combine",
  "identifier" : "/documentation/Combine/Publishers/Concatenate",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Combine"
    ],
    "preciseIdentifier" : "s:7Combine10PublishersO11ConcatenateV"
  },
  "title" : "Publishers.Concatenate"
}
-->

# Publishers.Concatenate

A publisher that emits all of one publisher’s elements before those from another publisher.

```
struct Concatenate<Prefix, Suffix> where Prefix : Publisher, Suffix : Publisher, Prefix.Failure == Suffix.Failure, Prefix.Output == Suffix.Output
```

## Topics

### Creating a concatenate publisher

[`init(prefix:suffix:)`](/documentation/Combine/Publishers/Concatenate/init(prefix:suffix:))

Creates a publisher that emits all of one publisher’s elements before those from another publisher.

### Declaring supporting types

[`Publishers.Concatenate.Output`](/documentation/Combine/Publishers/Concatenate/Output)

The kind of values published by this publisher.

[`Publishers.Concatenate.Failure`](/documentation/Combine/Publishers/Concatenate/Failure)

The kind of errors this publisher might publish.

### Inspecting publisher properties

[`prefix`](/documentation/Combine/Publishers/Concatenate/prefix)

The publisher to republish, in its entirety, before republishing elements from `suffix`.

[`suffix`](/documentation/Combine/Publishers/Concatenate/suffix)

The publisher to republish only after `prefix` finishes.

### Comparing publishers

[`==(_:_:)`](/documentation/Combine/Publishers/Concatenate/==(_:_:))

Returns a Boolean value that indicates whether two publishers are equivalent.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)