Maybe monoids

added by DotNetKicks
4/4/2018 2:35:25 PM

2 Kicks, 306 Views

You can combine Maybe objects in various ways, thereby turning them into monoids. There's at least two unconstrained monoids over Maybe values, as well as some constrained monoids. By constrained I mean that the monoid only exists for Maybe objects that contain certain values. You'll see such an example first.