Book

Swift Functional Programming

This book aims to simplify the concepts of FP and provide practical examples with Swift. It combines FP, OOP, POP, and FRP paradigms and explores function currying, memoization, lenses, algebraic data types, type erasure, monads, functors, applicatives, and functional data structures. It also provides a backend API with Vapor and a multi-paradigm iOS APP.

Offered byPackt Logo

Difficulty Level

Intermediate

Completion Time

10h32m

Language

English

About Book

Who Is This Book 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.

Book content

chapters 10h32m total length

Getting started with functional programming in Swift

Defining and using functions

Importance of immutability

Defining and using Enumerations

Defining and using Types, Type Inferences and Pattern Matching

Defining and using functional data structures

Defining and Using Generics

Map, Filter and Reduce for Declarative Programming

Dealing with Optionals

Best of both worlds, combining FP paradigms with OOP

Case Study: Developing an iOS application with FP and OOP paradigms

Related Resources

Access Ready-to-Use Books for Free!

Get instant access to a library of pre-built books—free trial, no credit card required. Start training your team in minutes!

No credit card required