mirror of
https://github.com/nushell/nushell.git
synced 2025-08-14 07:48:37 +02:00
@ -20,7 +20,7 @@ Runs a block on window groups of `window_size` that slide by n rows.
|
||||
|
||||
A sliding window of two elements
|
||||
```shell
|
||||
> echo [1 2 3 4] | each window 2 { $it.0 + $it.1 }
|
||||
> echo [1 2 3 4] | each window 2 { |it| $it.0 + $it.1 }
|
||||
```
|
||||
|
||||
A sliding window of two elements, with a stride of 3
|
||||
|
Reference in New Issue
Block a user