An Either monad

added by DotNetKicks
5/9/2022 4:22:21 PM

175 Views

The Either sum type forms a monad. An article for object-oriented programmers. This article is an instalment in an article series about monads. The Either sum type is a useful data type that forms a functor. Actually, it forms two functors. Like many other useful functors, it also forms a monad.


0 comments