Crate rusty_utils

Source
Expand description

A Rust package that provides utility functions inspired by or ported from other programming languages.

rusty_utils aims to simplify intricate and hard-to-read instructions in Rust, allowing you to express complex operations with clarity and brevity. Inspired by the conciseness of other programming languages, rusty_utils provides a set of functions that compact multiple steps into a single, readable call.

Functionsยง

concat_arrays
Allows the user to concatenate multiple arrays without having to worry about array sizing.
reverse_string
Compacts the standar string_value.chars().rev().collect() into a single call, to improve readability.
ternary_operator
Compacts the standard if (condition) {} else {} into a single call, to improve readability and please users accustomed to the ternary operator in other languages.