为什么这段代码不起作用?
func function (param1 : Int, param2 : Int) -> Int { return $0 + $1 }
它会产生错误:
错误:匿名闭包参数未包含在闭包中
swift
swift ×1