Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Rust 1.100.0. Parent comment
https://doc.rust-lang.org/std/collections/hash_map/enum.Entr...
let mut map: HashMap<&str, u32> = HashMap::new(); map.entry("poneyland").or_insert(3); assert_eq!(map["poneyland"], 3);
There are no comments on this comment yet.
https://doc.rust-lang.org/std/collections/hash_map/enum.Entr...
It's very ergonomic.