mirror of
https://github.com/nushell/nushell
synced 2024-12-29 06:23:11 +00:00
c0a1d18e3d
* feat: update #4455, regenerate commands' docs * chore: update make_docs script
23 lines
398 B
Markdown
23 lines
398 B
Markdown
---
|
|
title: par-each group
|
|
layout: command
|
|
version: 0.59.0
|
|
---
|
|
|
|
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 group
|
|
- `block`: the block to run on each group
|
|
|
|
## Examples
|
|
|
|
Multiplies elements in list
|
|
```shell
|
|
> echo [1 2 3 4] | par-each group 2 { $it.0 + $it.1 }
|
|
```
|