mirror of
https://github.com/nushell/nushell
synced 2024-12-29 06:23:11 +00:00
c0a1d18e3d
* feat: update #4455, regenerate commands' docs * chore: update make_docs script
22 lines
341 B
Markdown
22 lines
341 B
Markdown
---
|
|
title: keep until
|
|
layout: command
|
|
version: 0.59.0
|
|
---
|
|
|
|
Keep elements of the input until a predicate is true.
|
|
|
|
## Signature
|
|
|
|
```> keep until (predicate)```
|
|
|
|
## Parameters
|
|
|
|
- `predicate`: the predicate that kept element must not match
|
|
|
|
## Examples
|
|
|
|
Keep until the element is positive
|
|
```shell
|
|
> echo [-1 -2 9 1] | keep until $it > 0
|
|
```
|