#combination #gear #attempt #states #gears #getting #combos

bin+lib gear_combos

Attempts to make getting combinations of things easier with the use of gears and simple numeric states!

1 stable release

1.0.4 Apr 30, 2020
1.0.2 Apr 29, 2020

#11 in #gear

35 downloads per month

MIT/Apache

14KB
300 lines

Attempts to make getting combinations of things easier with the use of gears and simple numeric states!

Example

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

No runtime deps