nushell/docs/commands/group.md

23 lines
275 B
Markdown
Raw Normal View History

---
title: group
layout: command
version: 0.59.1
---
Groups input into groups of `group_size`.
## Signature
```> group (group_size)```
## Parameters
- `group_size`: the size of each group
## Examples
Group the a list by pairs
```shell
> echo [1 2 3 4] | group 2
```