Home Explore Blog CI



nushell

5th chunk of `book/nushell_map_imperative.md`
6c751694ab03a249fd5f8a74c9ce749c2d883088368adc350000000100001081
| [`transpose`](/commands/docs/transpose.md)                                                                                             | `zip(\*matrix)`                      |                                                             |                             |                                                      |
| [`http post`](/commands/docs/http_post.md)                                                                                             | `urllib.request.urlopen`             |                                                             |                             |                                                      |
| [`prepend`](/commands/docs/prepend.md)                                                                                                 | `deque.appendleft`                   |                                                             |                             |                                                      |
| [`print`](/commands/docs/print.md)                                                                                                     | `print`                              | `println`                                                   | `printf`                    | `println!`                                           |
| [`ps`](/commands/docs/ps.md)                                                                                                           | `os.listdir('/proc')`                |                                                             |                             |                                                      |
| [`pwd`](/commands/docs/pwd.md)                                                                                                         | `os.getcwd`                          |                                                             |                             | `env::current_dir`                                   |
| [`range`](types_of_data.html#ranges) type                                                                                              | `range`                              | `..`, `until`, `downTo`, `step`                             | `iota`                      | `..`                                                 |
| [`reduce`](/commands/docs/reduce.md)                                                                                                   | `functools.reduce`                   | `reduce`                                                    | `reduce`                    | `fold`, `rfold`, `scan`                              |
| [`reject`](/commands/docs/reject.md)                                                                                                   | `del`                                |                                                             |                             |                                                      |
| [`rename`](/commands/docs/rename.md)                                                                                                   | `dict[\"key2\"] = dict.pop(\"key\")` |                                                             |                             | `map.insert(\"key2\", map.remove(\"key\").unwrap())` |
| [`reverse`](/commands/docs/reverse.md)                                                                                                 | `reversed`, `list.reverse`           | `reverse`, `reversed`, `asReversed`                         | `reverse`                   | `rev`                                                |
| [`rm`](/commands/docs/rm.md)                                                                                                           | `os.remove`                          |                                                             |                             |                                                      |
| [`save`](/commands/docs/save.md)                                                                                                       | `io.TextIOWrapper.write`             |                                                             |                             |                                                      |

Title: Nu Command Equivalents in Other Languages (Continued)
Summary
This section continues to provide Nu command equivalents in Python, Kotlin (Java), C++, and Rust. It covers commands like `transpose`, `http post`, `prepend`, `print`, `ps`, `pwd`, `range`, `reduce`, `reject`, `rename`, `reverse`, `rm`, and `save`, showing how to perform similar operations in other programming languages.