Crates.io | dish |
lib.rs | dish |
version | 0.0.1 |
source | src |
created_at | 2022-12-27 17:35:45.707236 |
updated_at | 2022-12-27 17:35:45.707236 |
description | Addition to core |
homepage | |
repository | https://github.com/mrMiiao/dish |
max_upload_size | |
id | 746357 |
size | 14,915 |
dish provides several extensions for Rust's libcore.
use dish::prelude::*;
fn mmgcd(src: Vec<usize>) -> usize {
src.into_iter()
.min_max_pipe(Number::gcd)
.unwrap()
}
use dish::prelude::*;
fn dgsum<T: Number>(n: T) -> u8 {
n.digits()
.sum()
}