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

# decode(_:using:)

Decodes the data in each element of the column.

## Declaration

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

## Parameters

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

## Discussion

Discussion note: ColumnDecodingError if an element fails to decode.

## See Also

### Decoding a Column

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