I have been struggling into understanding of monad.
And, I concluded monad is box of values in which operates some specific task.
so, Can I say Future and Promise are also kind of monad?
I have been struggling into understanding of monad.
And, I concluded monad is box of values in which operates some specific task.
so, Can I say Future and Promise are also kind of monad?
Not sure about Promise
but Future
is considered monadic.
https://www.precog.com/blog/Precog-Copointed-The-Abstract-Future/