
27 May
2010
27 May
'10
3:33 p.m.
* Ionut G. Stan wrote:
I was just wondering if there's any particular reason for which the two constructors of the Either data type are named Left and Right.
Yes. The basic function on this type is "either". either a b (Left x) = Left (a x) either a b (Right x) = Right (b x) So the names of the constuctors are "natural".