Functional Programming in Swift

Book Description

This book will teach you how to use to apply functional techniques to your iOS or OS X projects. These techniques complement programming that most Objective-C developers will already be familiar with, providing you with a valuable new tool in your developer's toolbox. We will start by taking a look at Swift's new language features, such as higher-order functions, generics, optionals, enumerations, and pattern matching. Mastering these new features will enable you to write functional effectively. After that, we will provide several examples of how to use functional programming patterns to solve real-world problems. These examples include a compositional and type-safe around Core Image, a library for diagrams built on Core Graphics, and a small spreadsheet application built from scratch.

Table of Contents

Chapter 1. Introduction
Chapter 2. Thinking Functionally
Chapter 3. Wrapping Core Image
Chapter 4. Map, Filter, Reduce
Chapter 5. Optionals
Chapter 6. QuickCheck
Chapter 7. The Value of Immutability
Chapter 8. Enumerations
Chapter 9. Purely Functional
Chapter 10. Diagrams
Chapter 11. Generators and Sequences
Chapter 12. Parser Combinators
Chapter 13. Case Study: Building a Spreadsheet Application
Chapter 14. Functors, Applicative Functors, and Monads
Chapter 15. Conclusion

Book Details


How to Download? Report Dead Links & Get a Copy

Comments

Leave a Reply