---
title: lazy
framework: swift
role: symbol
role_heading: Instance Property
path: swift/set/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 Set

- [compactMap(_:)](swift/set/compactmap(_:).md)
- [flatMap(_:)](swift/set/flatmap(_:)-i3my.md)
- [flatMap(_:)](swift/set/flatmap(_:)-6chuh.md)
- [reduce(_:_:)](swift/set/reduce(_:_:).md)
- [reduce(into:_:)](swift/set/reduce(into:_:).md)
- [sorted()](swift/set/sorted().md)
- [sorted(by:)](swift/set/sorted(by:).md)
- [shuffled()](swift/set/shuffled().md)
- [shuffled(using:)](swift/set/shuffled(using:).md)
