values for filters

Given a record or table, produce a list of its columns' values.

Signature

> values

Notes

This is a counterpart to columns, which produces a list of columns' names.

Examples

Get the values from the record (produce a list)

> { mode:normal userid:31415 } | values
╭───┬────────╮
│ 0 │ normal │
│ 131415 │
╰───┴────────╯

Values are ordered by the column order of the record

> { f:250 g:191 c:128 d:1024 e:2000 a:16 b:32 } | values
╭───┬──────╮
│ 0250 │
│ 1191 │
│ 2128 │
│ 31024 │
│ 42000 │
│ 516 │
│ 632 │
╰───┴──────╯

Get the values from the table (produce a list of lists)

> [[name meaning]; [ls list] [mv move] [cd 'change directory']] | values
╭───┬──────────────────────────╮
│ 0 │ ╭───┬────╮               │
│   │ │ 0ls │               │
│   │ │ 1mv │               │
│   │ │ 2cd │               │
│   │ ╰───┴────╯               │
│ 1 │ ╭───┬──────────────────╮ │
│   │ │ 0 │ list             │ │
│   │ │ 1 │ move             │ │
│   │ │ 2 │ change directory │ │
│   │ ╰───┴──────────────────╯ │
╰───┴──────────────────────────╯