Rename sheet folders to assure proper sorting

This commit is contained in:
Lukas Kalbertodt
2017-02-16 15:12:56 +01:00
parent aaf0332117
commit b3664c6ffd
74 changed files with 0 additions and 0 deletions

15
aufgaben/sheet09/sol3/map.rs Executable file
View File

@ -0,0 +1,15 @@
macro_rules! hash_map {
( $($key:expr => $value:expr ,)* ) => {{
let mut map = ::std::collections::HashMap::new();
$( map.insert($key, $value); )*
map
}};
( $($key:expr => $value:expr),* ) => { hash_map!($($key => $value ,)*) };
}
fn main() {
let ages = hash_map!{ "Sabine" => 26, "Peter" => 32 };
println!("{:#?}", ages);
}