Bring the power of functional programming to Swift to develop clean, smart, scalable and reliable applications.
About This Book
- Written for the latest version of Swift, this is a comprehensive guide that introduces iOS, Web and macOS developers to the all-new world of functional programming that has so far been alien to them
- Get familiar with using functional programming alongside existing OOP techniques so you can get the best of both worlds and develop clean, robust, and scalable code
- Develop a case study on example backend API with Swift and Vapor Framework and an iOS application with Functional Programming, Protocol-Oriented Programming, Functional Reactive Programming, and Object-Oriented Programming techniques
Who This Book Is For
Meant for a reader who knows object-oriented programming, has some experience with Objective-C/Swift programming languages and wants to further enhance his skills with functional programming techniques with Swift 3.x.
What You Will Learn
- Understand what functional programming is and why it matters
- Understand custom operators, function composition, currying, recursion, and memoization
- Explore algebraic data types, pattern matching, generics, associated type protocols, and type erasure
- Get acquainted with higher-kinded types and higher-order functions using practical examples
- Get familiar with functional and non-functional ways to deal with optionals
- Make use of functional data structures such as semigroup, monoid, binary search tree, linked list, stack, and lazy list
- Understand the importance of immutability, copy constructors, and lenses