skip for filters

Skip the first several rows of the input. Counterpart of `drop`. Opposite of `first`.

Signature

> skip (n)

Parameters

  • n: the number of elements to skip

Input/output types:

inputoutput
list<any>list<any>
tabletable

Examples

Skip the first value of a list

> [2 4 6 8] | skip 1
╭───┬───╮
│ 04 │
│ 16 │
│ 28 │
╰───┴───╯

Skip two rows of a table

> [[editions]; [2015] [2018] [2021]] | skip 2
╭───┬──────────╮
│ # │ editions │
├───┼──────────┤
│ 02021 │
╰───┴──────────╯

Notes

To skip specific numbered rows, try drop nth. To skip specific named columns, try reject.

Subcommands:

nametypeusage
skip untilBuiltinSkip elements of the input until a predicate is true.
skip whileBuiltinSkip elements of the input while a predicate is true.