nushell/crates/nu-command/src/commands
Andrés N. Robalino b873fa7a5f
The zip command. (#3919)
We introduce it here and allow it to work with regular lists (tables with no columns) as well as symmetric tables. Say we have two lists and wish to zip them, like so:

```
[0 2 4 6 8] | zip {
  [1 3 5 7 9]
} | flatten

───┬───
 0 │ 0
 1 │ 1
 2 │ 2
 3 │ 3
 4 │ 4
 5 │ 5
 6 │ 6
 7 │ 7
 8 │ 8
 9 │ 9
───┴───
```

In the case for two tables instead:

```
[[symbol]; ['('] ['['] ['{']] | zip {
  [[symbol]; [')'] [']'] ['}']]
} | each {
  get symbol | $'($in.0)nushell($in.1)'
}

───┬───────────
 0 │ (nushell)
 1 │ [nushell]
 2 │ {nushell}
───┴───────────
```
2021-08-14 23:36:08 -05:00
..
charting Begin directory contrib docs and split commands (#3650) 2021-06-19 12:06:44 +12:00
config Begin directory contrib docs and split commands (#3650) 2021-06-19 12:06:44 +12:00
conversions Implement into path conversion (#3811) 2021-07-23 19:14:02 +12:00
core_commands add performance metrics for measuring startup time (#3854) 2021-07-29 18:52:40 -05:00
dataframe describe command (#3907) 2021-08-08 05:48:54 +12:00
env Fix clippy lint and disable broken lint (#3865) 2021-07-30 08:11:47 +12:00
filesystem Read from standard input in rm (#3763) 2021-07-25 15:01:53 +12:00
filters The zip command. (#3919) 2021-08-14 23:36:08 -05:00
formats Reimplement parsers with nu-serde (#3880) 2021-08-06 11:46:19 -05:00
generators Improve md5 and sha256 code (#3841) 2021-07-29 10:22:16 -05:00
math Begin directory contrib docs and split commands (#3650) 2021-06-19 12:06:44 +12:00
network port network url to engine-p (#3690) 2021-06-26 13:19:10 +12:00
path Move path handling to nu-path (#3653) 2021-06-20 11:07:26 +12:00
pathvar Support other variables than PATH in pathvar (2nd attempt) (#3828) 2021-07-24 11:44:36 -05:00
platform Fix clippy lint and disable broken lint (#3865) 2021-07-30 08:11:47 +12:00
random Bump rand version used by nu-command to 0.8 (#3723) 2021-07-05 16:12:44 +12:00
shells Begin directory contrib docs and split commands (#3650) 2021-06-19 12:06:44 +12:00
strings port capitalize to engine-p (#3794) 2021-07-23 19:13:11 +12:00
viewers All is a DataFrame (#3812) 2021-07-25 22:01:54 +12:00
mod.rs The zip command. (#3919) 2021-08-14 23:36:08 -05:00