---
title: lazy
framework: swift
role: symbol
role_heading: Instance Property
path: swift/string/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 String’s Characters

- [compactMap(_:)](swift/string/compactmap(_:).md)
- [flatMap(_:)](swift/string/flatmap(_:)-i3m9.md)
- [flatMap(_:)](swift/string/flatmap(_:)-6chuq.md)
- [reduce(_:_:)](swift/string/reduce(_:_:).md)
- [reduce(into:_:)](swift/string/reduce(into:_:).md)
