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

# map(_:)

Creates a new column by applying a transformation to each element.

## Declaration

```swift
func map<T>(_ transform: (DiscontiguousColumnSlice<WrappedElement>.Element) throws -> T?) rethrows -> Column<T>
```

## Parameters

- `transform`: A closure that transforms the column slice’s elements to another type.
