mirror of
https://github.com/nushell/nushell
synced 2024-12-28 14:03:09 +00:00
419 B
419 B
title | layout | version |
---|---|---|
range | command | 0.59.1 |
Return only the selected rows.
Signature
> range (rows)
Parameters
rows
: range of rows to return: Eg) 4..7 (=> from 4 to 7)
Examples
Get the last 2 items
> [0,1,2,3,4,5] | range 4..5
Get the last 2 items
> [0,1,2,3,4,5] | range (-2)..
Get the next to last 2 items
> [0,1,2,3,4,5] | range (-3)..-2