---
title: "mapAnnotations(_:)"
framework: swift
role: symbol
role_heading: Instance Method
path: "swift/lazysequence/mapannotations(_:)"
---

# mapAnnotations(_:)

Returns a lazy sequence where the elements of the result are computed each time they are read by calling transform function on the annotation of an annotated feature.

## Declaration

```swift
func mapAnnotations<Feature, Input, Output>(_ transform: @escaping (Input) -> Output) -> LazyMapSequence<Base, AnnotatedFeature<Feature, Output>> where Base.Element == AnnotatedFeature<Feature, Input>
```
