mirror of
https://github.com/nushell/nushell
synced 2024-11-15 09:27:08 +00:00
8c0a2d3c15
* Finish updating * a couple improvements * Update renames * cleanup examples
337 B
337 B
title | layout | version |
---|---|---|
keep | command | 0.59.0 |
Keep the first n elements of the input.
Signature
> keep (n)
Parameters
n
: the number of elements to keep
Examples
Keep two elements
> echo [[editions]; [2015] [2018] [2021]] | keep 2
Keep the first value
> echo [2 4 6 8] | keep