Part 1 The Functional Toolkit

 

The first part lays the foundation. We will learn tools and techniques that are ubiquitous in functional programming. Everything we learn in this part will be reused in the remaining chapters and the rest of your career.

In chapter 1 we will discuss the basics and make sure we are on the same page regarding the approach to teaching this book embraces.

In chapter 2 we will discuss the difference between pure and impure functions. We will use some imperative examples to show the dangers and functional snippets that help mitigate them.

Chapter 3 will introduce pure function’s dancing partner: the immutable value. We will present how one cannot live without the other and that both of them define what functional programming is.

Finally, in chapter 4 we will show how pure functions are just values and demonstrate all the superpowers that we get from this fact.