idiom for “insert key/value pair if key is not present” in #rustlang is sweet
some_HashMap.entry( some_key).or_insert( some_value );
-
-
I can see I will be spending a lot of time studying HashMap <grin/> ...that *is* sweet & simple, tnx
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.