© Anto Aravinth, Srikanth Machiraju 2018
A. Aravinth, S. MachirajuBeginning Functional JavaScripthttps://doi.org/10.1007/978-1-4842-4087-8_9

9. Monads in Depth

Anto Aravinth1  and Srikanth Machiraju2
(1)
Chennai, Tamil Nadu, India
(2)
Hyderabad, Andhra Pradesh, India
 

In the previous chapter we saw what functors are and how they are useful to us. In this chapter we are going to continue with functors, learning about a new functor called a monad. Don’t be afraid of the terms; the concepts are easy to understand.

We are going to start with a problem of retrieving and displaying the Reddit comments for our search query. Initially we are going to use functors, especially the MayBe functor, to solve this problem. As we solve the problem, though, we are going ...

Get Beginning Functional JavaScript: Uncover the Concepts of Functional Programming with EcmaScript 8 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.