Home Explore Blog CI



nushell

8th chunk of `book/nushell_map_imperative.md`
2f12ea5c29dbf15a8d9f6de3ef1f58c42fb85327dded0bdf0000000100000f3f
| [`str join`](/commands/docs/str_join.md)                                                                                               | `str.join`                           | `joinToString`                                              |                             | `join`                                               |
| [`str trim`](/commands/docs/str_trim.md)                                                                                               | `strip`, `rstrip`, `lstrip`          | `trim`, `trimStart`, `trimEnd`                              | Regex                       | `trim`, `trim*{start,end}`, `strip*{suffix,prefix}`  |
| [`math sum`](/commands/docs/math_sum.md)                                                                                               | `sum`                                | `sum`                                                       | `reduce`                    | `sum`                                                |
| [`to`](/commands/docs/to.md)                                                                                                           | `import csv`, `json`, `sqlite3`      |                                                             |                             |                                                      |
| [`touch`](/commands/docs/touch.md)                                                                                                     | `open(path, 'a').close()`            |                                                             |                             |                                                      |
| [`uniq`](/commands/docs/uniq.md)                                                                                                       | `set`                                | Set                                                         | `set`                       | `HashSet`                                            |
| [`upsert`](/commands/docs/upsert.md)                                                                                                   | `dict[\"key\"] = val`                |                                                             |                             |                                                      |
| [`version`](/commands/docs/version.md)                                                                                                 | `sys.version`, `sys.version_info`    |                                                             |                             |                                                      |
| [`with-env`](/commands/docs/with-env.md)<br />`$env.FOO = "bar"`                                                                       | `os.environ`                         |                                                             |                             |                                                      |
| [`where`](/commands/docs/where.md)                                                                                                     | `filter`                             | `filter`                                                    | `filter`                    | `filter`                                             |
| [`which`](/commands/docs/which.md)                                                                                                     | `shutil.which`                       |                                                             |                             |                                                      |
| [`wrap`](/commands/docs/wrap.md)                                                                                                       | `{ "key" : val }`                    |                                                             |                             |                                                      |

Title: Nu Command Equivalents in Other Languages (Continued)
Summary
This section continues the list of Nu command equivalents in Python, Kotlin (Java), C++, and Rust. It covers commands like `str join`, `str trim`, `math sum`, `to`, `touch`, `uniq`, `upsert`, `version`, `with-env`, `where`, `which`, and `wrap`, providing corresponding functions, methods, or constructs in each language.