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

Summary

In this chapter, we introduced the idea of a type class, which is central to modern functional programming. We built up to this idea by introducing the Rich Wrapper pattern first, which facilitates type classes in Scala. A type class can be understood as a toolbox to process raw effect types. Another understanding of the Type Class pattern is that it is an injectable interface that you can inject into your classes to achieve polymorphism. Finally, we had a look at how type classes are used in languages other than Scala. In the next chapter, we will learn about the commonly used type classes and the libraries they are organized in.

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