Swift-函数闭包Closure时间:2022-07-19 22:48:13闭包原型应该是OC中的block 还记得block的写法嘛 int (^myBlock)(int, int) = ^(int a, int b) { return a + b; };