Crates.io | gear_combos |
lib.rs | gear_combos |
version | 1.0.4 |
source | src |
created_at | 2020-04-29 12:02:03.898534 |
updated_at | 2020-04-30 10:19:50.840382 |
description | Attempts to make getting combinations of things easier with the use of gears and simple numeric states! |
homepage | |
repository | https://github.com/dazza91/gear_combos/ |
max_upload_size | |
id | 235306 |
size | 13,375 |
Attempts to make getting combinations of things easier with the use of gears and simple numeric states!
use gear_combos::*;
let mut gears = vec![Gear::new(2),Gear::new(2)];
let combos = get_gears_combinations(&mut gears);
assert_eq!(vec![vec![0,0],vec![1,0],vec![0,1],vec![1,1]],combos);