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

Execution semantics abstraction

The capabilities type class is on equal ground with the Monad type class. The Monad type class defines how you would compose the computation sequentially. There is a saying that Monad is the semicolon of functional programming. Why would people say that? What is the role of a semicolon in object-oriented programming? In ordinary imperative programming, a semicolon is a symbol that separates one statement from another. The meaning of a semicolon is that one statement should be executed after another statement. In a sense, you can treat a semicolon as an operator of the sequential combination of two computation.

The flatMap function does exactly that for the functional programming world. flatMap defines how ...

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