What is the idiomatic way of a getOrElseUpdate for immutable.Map instances?. I use the snippet below, but it seems verbose and inefficient
var map = Map[Key, Val
Why not use withDefault or withDefaultValue if you have an immutable map?
withDefault
withDefaultValue