<!--
{
  "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/Publisher/append(_:)-69sdn",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Combine"
    ],
    "preciseIdentifier" : "s:7Combine9PublisherPAAE6appendyAA10PublishersO11ConcatenateVy_xAF8SequenceVy_qd__7FailureQzGGqd__STRd__7ElementQyd__6OutputRtzlF"
  },
  "title" : "append(_:)"
}
-->

# append(_:)

Appends a publisher’s output with the specified sequence.

```
func append<S>(_ elements: S) -> Publishers.Concatenate<Self, Publishers.Sequence<S, Self.Failure>> where S : Sequence, Self.Output == S.Element
```

## Parameters

`elements`

A sequence of elements to publish after this publisher’s elements.

## Return Value

A publisher that appends the sequence of elements after this publisher’s elements.

## Discussion

Use [`append(_:)`](/documentation/Combine/Publisher/append(_:)-69sdn) to append a sequence to the end of a publisher’s output.

In the example below, the [`append(_:)`](/documentation/Combine/Publisher/append(_:)-69sdn) publisher republishes all elements from `groundTransport` until it finishes, then publishes the members of `airTransport`:

```
let groundTransport = ["car", "bus", "truck", "subway", "bicycle"]
let airTransport = ["parasail", "jet", "helicopter", "rocket"]
cancellable = groundTransport.publisher
    .append(airTransport)
    .sink { print("\($0)", terminator: " ") }

// Prints: "car bus truck subway bicycle parasail jet helicopter rocket"
```

---

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)