Money monoid

added by DotNetKicks
10/17/2017 12:47:00 PM

1 Kicks, 342 Views

In order to be a monoid, it must obey the monoid laws, the first of which is that the operation must be associative. This means that for three IExpression objects, x, y, and z, x.Plus(y).Plus(z) must be equal to x.Plus(y.Plus(z)). How should you interpret equality here?