<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Merry Christmas!<br>Hope everybody is enjoying the Christmas!<br><br>I am doing some readings and I found something seems to be interesting.<br><br>People sometime will try to represent a quantity-regard-only data structure<br>(such a order-regadless List) using functions instead of ta concrete data<br>structure (like the haskell build-in []), any particular reason for this?<br><br>For example,<br>&gt; data Sex = Male | Female<br>&gt; classA :: Sex -&gt; Int<br>&gt; classA Male = 100<br>&gt; classA Female = 200<br><br>when I should prefer the above solution instead of using a concrete data structure<br>such as [] to represent the classA members?<br><br>It seems to be very difficult to change the number of Male or Female if a concrete data<br>structure is not used. Is it possible change the number of Male in classA when represent<br>classA using function?<br><br>Thank you very much!<br><br>Best wishes,<br>Raeck<br><br><br /><hr />It’s the same Hotmail®. If by “same” you mean up to 70% faster. <a href='http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_broad1_122008' target='_new'>Get your account now.</a></body>
</html>