mirror of
https://github.com/nushell/nushell.git
synced 2025-08-10 06:48:17 +02:00
Autogenerate missing docs (#3514)
* Autogenerate missing docs * Update ansi.md * Rename question mark command docs * Delete empty?.md
This commit is contained in:
22
docs/commands/each-window.md
Normal file
22
docs/commands/each-window.md
Normal file
@ -0,0 +1,22 @@
|
||||
# each window
|
||||
Runs a block on sliding windows of `window_size` rows of a table at a time.
|
||||
|
||||
## Usage
|
||||
```shell
|
||||
> each window <window_size> <block> {flags}
|
||||
```
|
||||
|
||||
## Parameters
|
||||
* `<window_size>` the size of each window
|
||||
* `<block>` the block to run on each group
|
||||
|
||||
## Flags
|
||||
* -h, --help: Display this help message
|
||||
* -s, --stride <integer>: the number of rows to slide over between windows
|
||||
|
||||
## Examples
|
||||
Echo the sum of each window
|
||||
```shell
|
||||
> echo [1 2 3 4] | each window 2 { echo $it | math sum }
|
||||
```
|
||||
|
Reference in New Issue
Block a user