wrap
for filters
Wrap the value into a column.
Signature
> wrap (name)
Parameters
name
: the name of the column
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 │
╰───┴─────╯