items
for filters> items {flags} (closure)
closure
: the closure to runinput | output |
---|---|
record | any |
Iterate over each key-value pair of a record
> { new:york, san:francisco } |items {|key, value| echo$'($key) ($value)' }
╭───┬───────────────╮
│0│newyork│
│1│sanfrancisco│
╰───┴───────────────╯
This is a the fusion of columns
, values
and each
.
Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/items.html