DeepRead
Cover of Functional Swift

About the book

Functional Swift is a short practical book on applying functional programming techniques in Swift, the language Apple released in 2014. It covers first-class functions, immutable values, higher-order functions such as map, filter and reduce, and how Swift's optionals and generics support these techniques, with examples drawn from iOS and OS X development. The central claim is that writing code as a composition of pure functions over immutable data makes programs easier to reason about, test and change than the mutable, state-driven style common in Objective-C. The book argues that Swift's type system and syntax make these techniques practical in everyday app code, not only in academic languages. It illustrates the point with examples such as wrapping Core Image filters, parser combinators, and property-based testing with QuickCheck.

Written by Claude from what it knows of this book.

What Hacker News says 0% recommend · 0% critical

In the commenters’ own words

What Open Library readers say

No Open Library reader has rated it yet.

Open Library’s page for the book

What critics say, via Wikipedia

No Wikipedia article about this book yet, so no critics to quote.

Reddit communities — coming later

The threads it came up in

Details

First published
2014
ISBN
9781726609913
Editions known
4 at Open Library
Open Library
OL27229940W

Explore in the mosaic

Read next: its neighbours on the mosaic