contents

 

  

Front matter

foreword to the first edition

foreword to the second edition

preface to the second edition

acknowledgments

about this book

about the authors

  

Part 1. Introduction to functional programming

  1  What is functional programming?

  1.1    Understanding the benefits of functional programming

A program with side effects

A functional solution: Removing the side effects

  1.2    Exactly what is a (pure) function?

  1.3    Referential transparency, purity, and the substitution model

  1.4    Conclusion

  2  Getting started with functional programming in Scala

  2.1    Introducing Scala the language

Running our program