mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
335 B
16 lines
335 B
1 year ago
|
use smallest::smallest;
|
||
|
use std::collections::HashMap;
|
||
|
|
||
|
fn main() {
|
||
|
let mut hash = HashMap::new();
|
||
|
hash.insert("Cat", 122);
|
||
|
hash.insert("Dog", 333);
|
||
|
hash.insert("Elephant", 334);
|
||
|
hash.insert("Gorilla", 14);
|
||
|
|
||
|
println!(
|
||
|
"The smallest of the elements in the HashMap is {}",
|
||
|
smallest(hash)
|
||
|
);
|
||
|
}
|