Merge pull request #45 from akshitgautam42/Ex-45

Exercise 45
This commit is contained in:
Akshit Gautam 2023-11-14 09:10:46 +05:30 committed by GitHub
commit 9208d40f61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,10 +16,12 @@
use std::collections::HashMap;
fn fruit_basket() -> HashMap<String, u32> {
let mut basket = // TODO: declare your hash map here.
let mut basket : HashMap<String,u32> = HashMap::new(); // TODO: declare your hash map here.
// Two bananas are already given for you :)
basket.insert(String::from("banana"), 2);
basket.insert(String::from("apple"),3);
basket.insert(String::from("chiku"),5);
// TODO: Put more fruits in your basket here.