The many forms of Swift functions

Aug 2, 2014 16:19 · 40 words · 1 minute read

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.