O'Reilly logo

Swift for the Really Impatient by Dave Wood, Matt Henderson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 6. Functions and Closures

Topics in This Chapter

Image 6.1 Functions

Image 6.2 Closures

Image 6.3 Functional Programming Patterns

Image Exercises

Functions in Swift provide a flexible way to break your code into small pieces. The parameters and return value of a function give every function a type. Because a function has a type, it can be treated like any other ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required