How to simplify processing values from Map

前端 未结 0 1534
悲&欢浪女
悲&欢浪女 2020-12-05 21:32

I often have to write constructs like: if the key is there, get the value and do something, otherwise put a new value (sometimes with additional processing)Is there any way

相关标签:
回答
  • 消灭零回复
提交回复
热议问题