Swift-函数闭包Closure

闭包原型应该是OC中的block

还记得block的写法嘛

int (^myBlock)(int, int) = ^(int a, int b) {
     return a + b;
};

原文地址:https://www.cnblogs.com/melodyzhy/p/4710823.html