group
for filters> group {flags} (group_size)
group_size
: the size of each groupinput | output |
---|---|
list<any> | list<list<any>> |
Group the a list by pairs
> [1234] |group2
╭───┬───────────╮
│0│╭───┬───╮│
│││0│1││
│││1│2││
││╰───┴───╯│
│1│╭───┬───╮│
│││0│3││
│││1│4││
││╰───┴───╯│
╰───┴───────────╯
Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/group.html