| Crates.io | short-names |
| lib.rs | short-names |
| version | 0.1.3 |
| created_at | 2025-03-22 09:25:16.013341+00 |
| updated_at | 2025-04-17 14:21:14.726043+00 |
| description | Add very short names to some methods in the core |
| homepage | |
| repository | https://github.com/A4-Tacks/short-names-rs |
| max_upload_size | |
| id | 1601681 |
| size | 15,904 |
Add very short names to some methods in the core
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]);