Swift subtle difference between curried and higher order function

前端 未结 0 1837
挽巷
挽巷 2021-02-11 08:54

NOTE: This question was asked while Swift 2.1 was the latest.

Given:

class IntWrapper {
    var i: Int = 1
}
func add(inout m: Int, i: Int) {
    m += i
         


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