---
title: "map(_:)"
framework: swift
role: symbol
role_heading: Instance Method
path: "swift/anysequence/map(_:)"
---

# map(_:)

## Declaration

```swift
func map<T, E>(_ transform: (Element) throws(E) -> T) throws(E) -> [T] where E : Error
```
