# MV_ZIP

The MV_ZIP function combines the values from two multivalued fields, joining each pair of values together using a specified delimiter.

## Syntax

`MV_ZIP(string1, string2, delim)`

### Parameters

#### string1

A multivalue expression representing the first set of values to zip.

#### string2

A multivalue expression representing the second set of values to zip.

#### delim

Optional. The delimiter used to join each pair of values. If omitted, a comma (`,`) is used by default.

## Examples

Combines the values from two multivalued fields `a` and `b`, joining each pair with a hyphen and storing the result in field `c`.

```esql
ROW a = ["x", "y", "z"], b = ["1", "2"]
| EVAL c = mv_zip(a, b, "-")
| KEEP a, b, c
```