Closure in Swift
Closures are self-contained blocks of functionality that can be passed around as an argument and takes parameter as any object. Closures in Swift are similar to blocks in C and Objective-C and to lambdas in other programming languages.