Swift: mutate cast parameter (Error: Cannot use mutating member on immutable value of type 'MyObjectType' (aka 'Dictionary')

前端 未结 0 965
慢半拍i
慢半拍i 2021-01-30 03:42

I have a functions where I passed in Dictionary [Int : Int] as inout T and would need to write into the Dictionary. This function is included as a function of a protocol.

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