Functional Programming in Scala
- Length: 325 pages
- Edition: 1
- Language: English
- Publisher: Manning Publications
- Publication Date: 2014-02-28
- ISBN-10: 1617290653
- ISBN-13: 9781617290657
- Sales Rank: #85400 (See Top 100 Books)
Functional programming (FP) is a programming style emphasizing functions that return consistent and predictable results regardless of a program’s state. As a result, functional code is easier to test and reuse, simpler to parallelize, and less prone to bugs. Scala is an emerging JVM language that offers strong support for FP. Its familiar syntax and transparent interoperability with existing Java libraries make Scala a great place to start learning FP.
Functional Programming in Scala is a serious tutorial for programmers looking to learn FP and apply it to the everyday business of coding. The book guides readers from basic techniques to advanced topics in a logical, concise, and clear progression. In it, they’ll find concrete examples and exercises that open up the world of functional programming.
Purchase of the print book comes with an offer of a free PDF, ePub, and Kindle eBook from Manning. Also available is all code from the book.
Table of Contents
Part 1 Introduction to functional programming
Chapter 1 What is functional programming?
Chapter 2 Getting started with functional programming in Scala
Chapter 3 Functional data structures
Chapter 4 Handling errors without exceptions
Chapter 5 Strictness and laziness
Chapter 6 Purely functional state
Part 2 Functional design and combinator libraries
Chapter 7 Purely functional parallelism
Chapter 8 Property-based testing
Chapter 9 Parser combinators
Part 3 Common structures in functional design
Chapter 10 Monoids
Chapter 11 Monads
Chapter 12 Applicative and traversable functors
Part 4 Effects and I/O
Chapter 13 External effects and I/O
Chapter 14 Local effects and mutable state
Chapter 15 Stream processing and incremental I/O