# Hex.concat

Concatenates two or more [`Hex.Hex`](/api/Hex/types#hex).

## Imports

:::code-group
```ts [Named]
import { Hex } from 'ox'
```

```ts [Entrypoint]
import * as Hex from 'ox/Hex'
```
:::

## Examples

```ts twoslash
import { Hex } from 'ox'

Hex.concat('0x123', '0x456')
// @log: '0x123456'
```

## Definition

```ts
function concat(
  values: readonly Hex[],
): Hex
```

**Source:** [src/core/Hex.ts](https://github.com/wevm/ox/blob/main/src/core/Hex.ts#L1003)

## Parameters

### values

* **Type:** `readonly Hex[]`

The [`Hex.Hex`](/api/Hex/types#hex) values to concatenate.

## Return Type

The concatenated [`Hex.Hex`](/api/Hex/types#hex) value.

`Hex`
