2022-02-14 03:22:51 +01:00
|
|
|
---
|
|
|
|
title: merge
|
|
|
|
layout: command
|
|
|
|
version: 0.59.0
|
|
|
|
---
|
2021-05-30 02:57:04 +02:00
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
Merge a table into an input table
|
|
|
|
|
|
|
|
## Signature
|
|
|
|
|
|
|
|
```> merge (block)```
|
2021-05-30 02:57:04 +02:00
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
- `block`: the block to run and merge into the table
|
2021-05-30 02:57:04 +02:00
|
|
|
|
|
|
|
## Examples
|
2022-02-14 03:22:51 +01:00
|
|
|
|
|
|
|
Merge an index column into the input table
|
|
|
|
```shell
|
|
|
|
> [a b c] | wrap name | merge { [1 2 3] | wrap index }
|
|
|
|
```
|
|
|
|
|
|
|
|
Merge two records
|
2021-05-30 02:57:04 +02:00
|
|
|
```shell
|
2022-02-14 03:22:51 +01:00
|
|
|
> {a: 1, b: 2} | merge { {c: 3} }
|
|
|
|
```
|