mirror of
https://github.com/danbulant/nushell
synced 2026-05-19 20:38:40 +00:00
389 B
389 B
| title | layout | version |
|---|---|---|
| each group | command | 0.59.0 |
Runs a block on groups of group_size rows of a table at a time.
Signature
> each group (group_size) (block)
Parameters
group_size: the size of each groupblock: the block to run on each group
Examples
Echo the sum of each pair
> echo [1 2 3 4] | each group 2 { |it| $it.0 + $it.1 }