Skip to content

table

rows of values under shared column names

1
# table
2
[{a: 1, b: 2}] to tabletable([{a: 1, b: 2}])
Example outputCtrl+Enter to run
1
# t.col is a column
2
[{a: 1}, {a: 2}].table.a[1, 2]
Example outputCtrl+Enter to run
  • list convert to a list: a string’s characters, a map’s [key, value] pairs, a set’s items, a table’s rows as maps, or a copy of a list
  • table a table from a list of maps, one map per row
  • where keep only the rows that pass the test f, which gets each row as a map
  • select keep only the named columns, in the order given
  • reject remove the named columns
  • update a new table with one column’s cells replaced by f(cell)
  • insert a new table with an added last column col, holding f(row) for each row, where the row is a map
  • sort_by the rows sorted by the values in a column, smallest first
  • sort_by_desc the rows sorted by the values in a column, largest first
  • to_csv CSV text from a table, a list of maps, or a list of lists
  • streams the TCP conversations in a table from pcap, each connection’s payloads joined in the order they were captured, as src, dst, packets and data
  • sevenz pack a table of name and data into a 7z archive, compressed with LZMA2

Example results generated on 2026-11-04. Ones using now, today or randomness will differ when you run them.