<div class="content">
I am trying to define a containing function to see if a value is one
of the elements within a list which is polymorphic, but failed with the
following codes:<BR>
&gt; contain :: a -&gt; [a] -&gt; Bool<br>
&gt; contain x [] = False<br>
&gt; contain x (y:ys) = if x == y then True else contain x ys
it seems that the problem is the 'operator' == does not support a polymorphic check? <BR>
Any way can solve the problem? or any alternative solution to achieve the purpose?<BR>
Thanks!<BR>
Raeck<BR> </div><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>