The many forms of Swift functions

2 August 2014

There are a somewhat bewildering variety of forms that a Swift function can take, depending on the permutations of parameters and return values that you want to use. Here’s a cheat summary:

{% gist efb965552945366ae14a)

Here’s a downloadable PDF version.