Swift: Optional chaining for optional subscripts

前端 未结 2 1528
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-27 06:51

I have a let map : [String: String] and a let key: String?.

What is the most concise way to access map[key] (and get back a

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