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

# append(_:)

Appends a publisher’s output with the specified elements.

```
func append(_ elements: Self.Output...) -> Publishers.Concatenate<Self, Publishers.Sequence<[Self.Output], Self.Failure>>
```

## Parameters

`elements`

Elements to publish after this publisher’s elements.

## Return Value

A publisher that appends the specifiecd elements after this publisher’s elements.

## Discussion

Use [`append(_:)`](/documentation/Combine/Publisher/append(_:)-1qb8d) when you need to prepend specific elements after the output of a publisher.

In the example below, the [`append(_:)`](/documentation/Combine/Publisher/append(_:)-1qb8d) operator publishes the provided elements after republishing all elements from `dataElements`:

```
let dataElements = (0...10)
cancellable = dataElements.publisher
    .append(0, 1, 255)
    .sink { print("\($0)", terminator: " ") }

// Prints: "0 1 2 3 4 5 6 7 8 9 10 0 1 255"
```

---

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)