On Sale
Functional Swift
Learn core concepts of functional programming with Swift and leverage them in real world code.
by Chris Eidhof, Florian Kugler, and Wouter Swierstra
Swift opens up a whole new world of programming that we’re going to explore in this book. To quote Swift’s creator, Chris Lattner:
“Objective-C without the C” implies something subtractive, but Swift dramatically expands the design space through the introduction of generics and functional programming concepts.
We’ll explain the concepts behind functional programming and how Swift makes it easy to leverage them in a pragmatic way, in order to write clearer and more expressive code.
What’s in the book
Thinking Functionally
Get to know the functional programming paradigm
Map, Filter, Reduce
Higher-order functions and functional manipulation of collections
Functional APIs
Designing functional, composable, and type-safe APIs
Optionals
How Swift solves the “missing value” problem, and why that’s a good idea
Purity
Benefits of value types and immutability
Enums
Create your own data types with Swift’s enums for clarity and type safety
Purely Functional Data Structures
Use recursive enums to write simple data structures
Generators and Sequences
Understand the machinery underlying Swift’s collection types
Parsing & Evaluating
A functional parsing library and a simple spreadsheet app as example
Applicative Functors and Monads
Common patterns underlying functional code
Buy the book
* Select team size at checkout for final pricing
** Final price may differ due to fluctuations
Buy a bundle and save
-
- • Functional Swift
- + Advanced Swift
-
- • Functional Swift
- + Core Data
-
- • Functional Swift
- + Core Data
- + Advanced Swift
- + Optimizing Collections
About the Authors
-
Chris Eidhof
Chris is one of the objc.io co-founders, and host of Swift Talk. He also wrote a book about Functional Swift. Before, he wrote apps such as Deckset and Scenery.
-
Florian Kugler
Florian is one of the objc.io co-founders. He worked on Mac Apps like Deckset and Scenery, co-authored the Functional Swift book, and hosts the weekly Swift Talk video series.
-
Wouter Swierstra
Wouter has more than 15 years of experience with functional programming. He has worked in industry, taught courses, and published research articles — all using functional programming.