short-names

Crates.ioshort-names
lib.rsshort-names
version0.1.3
created_at2025-03-22 09:25:16.013341+00
updated_at2025-04-17 14:21:14.726043+00
descriptionAdd very short names to some methods in the core
homepage
repositoryhttps://github.com/A4-Tacks/short-names-rs
max_upload_size
id1601681
size15,904
A4-Tacks (A4-Tacks)

documentation

README

Add very short names to some methods in the core

Examples

use short_names::*;

let a = Some(":foo".to_owned());
let b = Some(":bar");
let x = a.ad().o(b).mo("none", |x| &x[1..]);
assert_eq!(x, "foo");
use short_names::*;

let arr = [0, 1, 2, 3, 4, 5];
let vec = arr.iter().co().f(|n| n%2==0).col::<Vec<_>>();
assert_eq!(vec, [0, 2, 4]);
Commit count: 4

cargo fmt