highdash 0.0.1

A lodash alternative for Rust. Great package for people coming from Javascript
Documentation
  • Coverage
  • 0%
    0 out of 9 items documented0 out of 0 items with examples
  • Size
  • Source code size: 9.32 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 317.22 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Documentation
  • himanshurajora/highdash
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • himanshurajora

Highdash

The lodash alternative in Rust.

You have decided switch to Rust from JavaScript but are missing some of the cool libraries such as lodash. This library tries to implement Lodash in rust and gives the experience as close as possible to lodash. Currently It is in development and has only implemented a few array methods. I am constantly working on it and adding new features. Hopefully this library will serve its purpose.

Installation

cargo add highdash

Example

use highdash::{gstr, map};

#[allow(unused)]
#[derive(Debug)]
struct User {
    name: String,
    age: i32,
}
fn main() {
    let user = User {
        name: gstr("Himanshu"),
        age: 20,
    };

    // It works for both arrays and vectors
    let users1 = vec![user];

    let names_only = map::<User, String>(&users1, |user, _i| return format!("{_i}: {}", user.name));

    print!("{:?}", names_only);
}

// Output: ["0: Himanshu"]

Currently, Open For Contribution

Thanks for visiting!

Made by Vedik Dev: Himanshu Jangid