How can I change an inout parameter from within a escaping closure?

前端 未结 0 1621
别跟我提以往
别跟我提以往 2021-01-02 17:15

I was trying to modify a parameter of function from within a escaping closure as below:

var completion = [()->Void]()

func addCompletion(closure: @escapin         


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