extern crate camel_up; use camel_up::prelude::*; fn main() { let race = "gyor,,,w".parse::().expect("to parse"); let dice = "gyorw".parse::().expect("to parse"); let result = project(&race, &dice); let mut ordered: Vec<(Camel, Fraction)> = result.winner.values().map(|(k, v)| (*k, *v)).collect(); ordered.sort_by(|(_, left), (_, right)| right.cmp(&left)); for (camel, fraction) in ordered { print!("({:?},{})", camel, fraction); } println!() }