mirror of
https://github.com/nushell/nushell
synced 2024-12-29 06:23:11 +00:00
23 lines
340 B
Markdown
23 lines
340 B
Markdown
|
---
|
||
|
title: skip while
|
||
|
layout: command
|
||
|
version: 0.59.0
|
||
|
---
|
||
|
|
||
|
Skip elements of the input while a predicate is true.
|
||
|
|
||
|
## Signature
|
||
|
|
||
|
```> skip while (predicate)```
|
||
|
|
||
|
## Parameters
|
||
|
|
||
|
- `predicate`: the predicate that skipped element must match
|
||
|
|
||
|
## Examples
|
||
|
|
||
|
Skip while the element is negative
|
||
|
```shell
|
||
|
> echo [-2 0 2 -1] | skip while $it < 0
|
||
|
```
|