wrap for filters

Wrap the value into a column.

Signature

> wrap {flags} (name)

Parameters

  • name: The name of the column.

Input/output types:

inputoutput
anyrecord
list<any>table
rangetable

Examples

Wrap a list into a table with a given column name

> [1 2 3] | wrap num
╭───┬─────╮
 # │ num │
├───┼─────┤
 0   1
 1   2
 2   3
╰───┴─────╯

Wrap a range into a table with a given column name

> 1..3 | wrap num
╭───┬─────╮
 # │ num │
├───┼─────┤
 0   1
 1   2
 2   3
╰───┴─────╯