We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
wrap
1 parent afc86c2 commit 8eb76f9Copy full SHA for 8eb76f9
commands/docs/wrap.md
@@ -57,3 +57,20 @@ Wrap a range into a table with a given column name
57
╰───┴─────╯
58
59
```
60
+
61
+## Notes
62
+Since `index` is a special keyword that defines the index of the table itself, in this case, `wrap` behavior might be surprising to some.
63
+```nu
64
+> [4 5 6] | wrap index
65
+╭───┬───────────────╮
66
+│ 4 │ ╭───────┬───╮ │
67
+│ │ │ index │ 4 │ │
68
+│ │ ╰───────┴───╯ │
69
+│ 5 │ ╭───────┬───╮ │
70
+│ │ │ index │ 5 │ │
71
72
+│ 6 │ ╭───────┬───╮ │
73
+│ │ │ index │ 6 │ │
74
75
+╰───┴───────────────╯
76
+```
0 commit comments