---
title: lazy
framework: swift
role: symbol
role_heading: Instance Property
path: swift/sequence/lazy
---

# lazy

A sequence containing the same elements as this sequence, but on which some operations, such as map and filter, are implemented lazily.

## Declaration

```swift
var lazy: LazySequence<Self> { get }
```

## See Also

### Transforming a Sequence

- [map(_:)](swift/sequence/map(_:).md)
- [compactMap(_:)](swift/sequence/compactmap(_:).md)
- [flatMap(_:)](swift/sequence/flatmap(_:)-jo2y.md)
- [reduce(_:_:)](swift/sequence/reduce(_:_:).md)
- [reduce(into:_:)](swift/sequence/reduce(into:_:).md)
- [flatMap(_:)](swift/sequence/flatmap(_:)-383uq.md)
