Chapter 16Functional Thinking in Swift

by Tony Hillerson

When Apple announced a new programming language for iOS and Mac development, a lot of developers immediately started geeking out over Swift. At Tack, where I work, we were no exception: most of us on the iOS side of the aisle started filling our chat room with “Sweet!,” “What the heck?,” and “Dude, check this out!” in equal measures. Now that the noise has settled down, we can analyze just how this language works, particularly in its functional style.

As you find your way around Swift, pay attention to the features that fit the functional paradigm. If you do, you’ll be better able to take advantage of the things a functional language does well, like handle concurrency better, express ...

Get Functional Programming: A PragPub Anthology now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.