Home Explore Blog CI



nushell

4th chunk of `book/nushell_map_imperative.md`
1a233f031968d236e1c348d826b21bcd16a96c3eb0add4b20000000100001081
| [`length`](/commands/docs/length.md)                                                                                                   | `len`                                | `size`, `length`                                            | `length`                    | `len`                                                |
| [`lines`](/commands/docs/lines.md)                                                                                                     | `split`, `splitlines`                | `split`                                                     | `views::split`              | `split`, `split_whitespace`, `rsplit`, `lines`       |
| [`ls`](/commands/docs/ls.md)                                                                                                           | `os.listdir`                         |                                                             |                             | `fs::read_dir`                                       |
| [`match`](/commands/docs/match.md)                                                                                                     | `match`                              | `when`                                                      |                             | `match`                                              |
| [`merge`](/commands/docs/merge.md)                                                                                                     | `dict.append`                        |                                                             |                             | `map.extend`                                         |
| [`mkdir`](/commands/docs/mkdir.md)                                                                                                     | `os.mkdir`                           |                                                             |                             | `fs::create_dir`                                     |
| [`mv`](/commands/docs/mv.md)                                                                                                           | `shutil.move`                        |                                                             |                             | `fs::rename`                                         |
| [`get`](/commands/docs/get.md)                                                                                                         | `list[x]`                            | `List[x]`                                                   | `vector[x]`                 | `Vec[x]`                                             |
| [`open`](/commands/docs/open.md)                                                                                                       | `open`                               |                                                             |                             |                                                      |
| [`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!`                                           |

Title: Nu Command Equivalents in Other Languages (Continued)
Summary
This section continues providing Nu command equivalents in Python, Kotlin (Java), C++, and Rust. It covers commands like `length`, `lines`, `ls`, `match`, `merge`, `mkdir`, `mv`, `get`, `open`, `transpose`, `http post`, `prepend`, and `print`, showing how to perform similar operations in other programming languages.