#iterator #result #options

no-std short-names

Add very short names to some methods in the core

4 releases

new 0.1.3 Apr 17, 2025
0.1.2 Mar 23, 2025
0.1.1 Mar 22, 2025
0.1.0 Mar 22, 2025

#179 in No standard library

Download history 311/week @ 2025-03-21 19/week @ 2025-03-28 2/week @ 2025-04-04 64/week @ 2025-04-11

399 downloads per month

MIT license

15KB
228 lines

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]);

Dependencies