Skip to Content
Mastering Functional Programming
book

Mastering Functional Programming

by Anatolii Kmetiuk
August 2018
Intermediate to advanced
380 pages
10h 2m
English
Packt Publishing
Content preview from Mastering Functional Programming

The Idea of the Type Classes

In the previous chapter, we saw the views of functional programming on data representation. In functional programming, data is most often encountered in the form of what a function returns. This result is usually a data structure that includes both the results of the function and data about the side effects that have occurred in the function. Different side effects are represented with different data structures.

We also saw how analyzing and working with these data structures can become tedious, so functional programming gives rise to patterns such as map and flatMap. There are many more patterns for working with effect types. The map and flatMap are just utility methods that are used in a specific context. However, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Functional Programming

Learning Functional Programming

Jack Widman

Publisher Resources

ISBN: 9781788620796Supplemental Content