Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions commands/docs/wrap.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,20 @@ Wrap a range into a table with a given column name
╰───┴─────╯

```

## Notes
Since `index` is a special keyword that defines the index of the table itself, in this case, `wrap` behavior might be surprising to some.
```nu
> [4 5 6] | wrap index
╭───┬───────────────╮
│ 4 │ ╭───────┬───╮ │
│ │ │ index │ 4 │ │
│ │ ╰───────┴───╯ │
│ 5 │ ╭───────┬───╮ │
│ │ │ index │ 5 │ │
│ │ ╰───────┴───╯ │
│ 6 │ ╭───────┬───╮ │
│ │ │ index │ 6 │ │
│ │ ╰───────┴───╯ │
╰───┴───────────────╯
```
Loading