#result #iterator

no-std short-names

Add very short names to some methods in the core

4 releases

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

#429 in No standard library

Download history 1/week @ 2025-05-17 1/week @ 2025-06-07

224 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