idiomatic “get or else update” for immutable.Map?

后端 未结 4 1536
再見小時候
再見小時候 2021-02-04 05:01

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         


        
4条回答
提交回复
热议问题