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 were armed with the theoretical foundations of effects, what they are, and why they are needed. We took a look at some examples of effects types which are frequently encountered in practice. We have seen how the Future type abstracts away asynchronous computations. We also looked at the Either type, which is similar to Try, but allows alternative representations for errors. Finally, we covered the Reader effect type, which abstracts away the effect of dependency. We also saw that flatMap is a typical pattern among effect types, which abstracts away the sequential composition of side effecting computations, and the effects of which are rectified into effect types.

In the next chapter, we'll have a look at how to ...

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