In this Swift tutorial, we will go over several examples of how to use closures.
Closures are self-contained blocks of functionality that can be passed around and used in your code, similar to blocks in C and Objective-C and to lambdas in other languages. Think of closures as functions with no name (anonymous functions).