Swift Functional Programming(Second Edition)
上QQ阅读APP看书,第一时间看更新

Closures

Closures are blocks of codes that can be passed around. Closures capture the constants and variables of the context in which they are defined. Swift provides closures with a simpler syntax than Objective-C blocks.