reverse for filters

Reverses the input list or table.

Signature

> reverse

Input/output types:

inputoutput
list<any>list<any>
tabletable

Examples

Reverse a list

> [0,1,2,3] | reverse
╭───┬───╮
│ 03 │
│ 12 │
│ 21 │
│ 30 │
╰───┴───╯

Reverse a table

> [{a: 1} {a: 2}] | reverse
╭───┬───╮
│ # │ a │
├───┼───┤
│ 02 │
│ 11 │
╰───┴───╯