enumerate
for filters> enumerate {flags}
input | output |
---|---|
any | table |
Add an index to each element of a list
> [a, b, c] |enumerate
╭───┬──────╮
│# │ item │
├───┼──────┤
│0│a│
│1│b│
│2│c│
╰───┴──────╯
Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/enumerate.html