mirror of
https://github.com/danbulant/nushell
synced 2026-05-19 20:38:40 +00:00
341 B
341 B
| title | layout | version |
|---|---|---|
| keep while | command | 0.59.1 |
Keep elements of the input while a predicate is true.
Signature
> keep while (predicate)
Parameters
predicate: the predicate that kept element must not match
Examples
Keep while the element is negative
> echo [-1 -2 9 1] | keep while $it < 0