---
title: "decoded(_:using:)"
framework: tabulardata
role: symbol
role_heading: Instance Method
path: "tabulardata/anycolumn/decoded(_:using:)"
---

# decoded(_:using:)

Decodes data for each element of the column.

## Declaration

```swift
func decoded<T, Decoder>(_ type: T.Type, using decoder: Decoder) throws -> AnyColumn where T : Decodable, Decoder : TopLevelDecoder
```

## Parameters

- `type`: The type of the value to decode.
- `decoder`: A decoder that accepts the column elements’ type.

## Return Value

Return Value A new column of decoded values.

## Discussion

Discussion note: ColumnDecodingError if an element fails to decode.

## See Also

### Decoding a Column

- [decode(_:using:)](tabulardata/anycolumn/decode(_:using:).md)
