<!--
{
  "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/Sequence",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Combine"
    ],
    "preciseIdentifier" : "s:7Combine10PublishersO8SequenceV"
  },
  "title" : "Publishers.Sequence"
}
-->

# Publishers.Sequence

A publisher that publishes a given sequence of elements.

```
struct Sequence<Elements, Failure> where Elements : Sequence, Failure : Error
```

## Overview

When the publisher exhausts the elements in the sequence, the next request causes the publisher to finish.

## Topics

### Creating a sequence publisher

[`init(sequence:)`](/documentation/Combine/Publishers/Sequence/init(sequence:))

Creates a publisher for a sequence of elements.

### Declaring supporting types

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

A publisher that publishes elements specified by a range in the sequence of published elements.

### Inspecting publisher properties

[`sequence`](/documentation/Combine/Publishers/Sequence/sequence)

The sequence of elements to publish.

### Comparing publishers

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

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

### Applying Operators

[Publisher Operators](/documentation/Combine/Publishers-Sequence-Publisher-Operators)

Methods that create downstream publishers or subscribers to act on the elements they receive.



---

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)