---
title: "append(_:)"
framework: combine
role: symbol
role_heading: Instance Method
path: "combine/publisher/append(_:)-69sdn"
---

# append(_:)

Appends a publisher’s output with the specified sequence.

## Declaration

```swift
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

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

## Discussion

Discussion Use append(_:) to append a sequence to the end of a publisher’s output. In the example below, the append(_:) 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"

## See Also

### Applying sequence operations to elements

- [drop(untilOutputFrom:)](combine/publisher/drop(untiloutputfrom:).md)
- [dropFirst(_:)](combine/publisher/dropfirst(_:).md)
- [drop(while:)](combine/publisher/drop(while:).md)
- [tryDrop(while:)](combine/publisher/trydrop(while:).md)
- [append(_:)](combine/publisher/append(_:)-1qb8d.md)
- [append(_:)](combine/publisher/append(_:)-5yh02.md)
- [prepend(_:)](combine/publisher/prepend(_:)-7wk5l.md)
- [prepend(_:)](combine/publisher/prepend(_:)-v9sb.md)
- [prepend(_:)](combine/publisher/prepend(_:)-5dj9c.md)
- [prefix(_:)](combine/publisher/prefix(_:).md)
- [prefix(while:)](combine/publisher/prefix(while:).md)
- [tryPrefix(while:)](combine/publisher/tryprefix(while:).md)
- [prefix(untilOutputFrom:)](combine/publisher/prefix(untiloutputfrom:).md)
