Crates.io | lubricant |
lib.rs | lubricant |
version | 1.0.0-alpha.3 |
source | src |
created_at | 2024-08-26 07:55:35.945171 |
updated_at | 2024-08-27 06:39:08.635516 |
description | Rust toolset |
homepage | https://github.com/GaoNeng-wWw/lubricant.git |
repository | |
max_upload_size | |
id | 1351926 |
size | 22,069 |
Powerful rust toolset
# (optional) cargo new
cargo install lubricant
// src/main.rs
use lubricant
fn main(){
let new_vec = lubricant::array::map(vec![1,2,3], |item|{item*2});
assert_eq!(new_vec[0], 2);
assert_eq!(new_vec[1], 4);
assert_eq!(new_vec[2], 6);
}
Welcome PR, but before submit pull request, Please read Contributing Guidelines
MIT