2 releases
0.1.1 | Dec 11, 2023 |
---|---|
0.1.0 | Dec 10, 2023 |
#943 in Programming languages
13KB
86 lines
Rusty Utils
A Rust package that provides utility functions inspired by or ported from other programming languages to make transitioning from JS or Python a lot easier. Some of those functions are:
ternary_operator()
: a function to emulate the ternary operator that is not present in Rust.reverse_string()
: inspired by thearray.reverse()
method available in JS.concat_arrays()
: a fast way to add all the values present in multiples arrays into a single vector.
There's more detailed documentation available here.
More functions and methods from other languages will be added in the future.
Usage
Add this to your cargo.toml
:
[dependencies]
rusty_utils = "*"
You can choose replace the asterisk with your prefered version number, or keep it to use the latest version.
Contributing
If you see a bug, have some idea that would be cool to add, or want to improve the looks of the documentation:
- Fork the repository.
- Add you contribution in a new branch.
- Send a pull request.
All contributions are welcome, don't be shy!
License
This project is licensed under the MIT License.