/// Returns a sorted vec of keys from a hash table
Returns a sorted vec of keys from a hash table
Returns a sorted vec of keys from a hash table
fn sorted_keys<T, X>(hash: &HashMap<T, X>) -> Vec<T>
    where T: Ord + Clone
{
    let mut keys = hash.keys().map(|x| x.clone()).collect::<Vec<_>>();
    keys.sort();
    keys
}
fn sorted_keys < T , X > ( hash : & HashMap < T , X > ) -> Vec < T > where T : Ord + Clone { let mut keys = hash . keys ( ) . map ( | x | x . clone ( ) ) . collect :: < Vec < _ > > ( ) ; keys . sort ( ) ; keys }
Returns a sorted vec of keys from a hash table
Returns a sorted vec of keys from a hash table
hash
&HashMap<T, X>