mirror of
https://github.com/nushell/nushell.git
synced 2024-12-02 05:13:56 +01:00
402 B
402 B
title | layout | version |
---|---|---|
par-each group | command | 0.59.1 |
Runs a block on groups of group_size
rows of a table at a time.
Signature
> par-each group (group_size) (block)
Parameters
group_size
: the size of each groupblock
: the block to run on each group
Examples
Multiplies elements in list
> echo [1 2 3 4] | par-each group 2 {|it| $it.0 + $it.1 }