上QQ阅读APP看书,第一时间看更新
Using closures to create self-contained code
Closures are self-contained lines of code to be executed and passed like any other data types. You should be familiar with blocks or at least heard about them in Objective-C or C. This recipe will help you to understand closure syntax and get familiar in using them.