merge

Merge a table into an input table

Signature

> merge (block)

Parameters

  • block: the block to run and merge into the table

Examples

Merge an index column into the input table

> [a b c] | wrap name | merge { [1 2 3] | wrap index }

Merge two records

> {a: 1, b: 2} | merge { {c: 3} }

Merge two records with overlap key

> {a: 1, b: 3} | merge { {b: 2, c: 4} }