<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Swift",
  "identifier" : "/documentation/Swift/LazySequenceProtocol/elements-6570c",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Swift"
    ],
    "preciseIdentifier" : "s:s20LazySequenceProtocolP8elements8ElementsQzvp"
  },
  "title" : "elements"
}
-->

# elements

A sequence containing the same elements as this one, possibly with
a simpler type.

```
var elements: Self.Elements { get }
```

## Discussion

When implementing lazy operations, wrapping `elements` instead of `self`
can prevent result types from growing an extra `LazySequence` layer.

Note: this property need not be implemented by conforming types,
it has a default implementation in a protocol extension that
just returns `self`.

---

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)