lo_ 0.1.6

A modern Rust utility library delivering modularity, performance & extras proted from JavaScript Lodash
Documentation

Lo_ as Lodash

A modern Rust utility library delivering modularity, performance & extras proted from JavaScript Lodash

Usage

Depend on lorust in Cargo.toml:

[dependencies]
lo_ = "0.1.5"

Example

Array
use lo_::chunk;

fn main() {
    let array = vec![1, 2, 3, 4, 5, 6, 7];
    let size = 3;
    let chunks = chunk(array, size);
    println!("array chunks: {:?}", chunks); // array chunks: [[1, 2, 3], [4, 5, 6], [7]]
}
String
use lo_::words;

fn main() {
    let input = "fred, barney, & pebbles";
    let result = words(input);
    println!("{:?}", result); // ["fred", "barney", "pebbles"]
}