You&#39;re right, I meant (!!).  I&#39;ve been playing with Array values recently, and (!) is used there.<br><br>As has already been stated, genericIndex in the Data.List module will help with the Integer problem, as will fromInteger.<br>
<br>As has also already been mentioned, lists + indexing = slow.  If you care about efficiency, and you need indexing, you might want to look into Data.Array.IArray if you have fixed bounds or Data.Sequence if you don&#39;t.<br>
<br><div class="gmail_quote">On Fri, Sep 10, 2010 at 11:12 AM, Lorenzo Isella <span dir="ltr">&lt;<a href="mailto:lorenzo.isella@gmail.com">lorenzo.isella@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On 09/10/2010 05:03 PM, Alex Rozenshteyn wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
alternatively (and more cleanly),<br>
 &gt; results = map (ml !) sel<br>
</blockquote>
<br></div>
Thanks Alex. I am left with this problem only: the entries of sel are (in my code) Integer rather than Int so...I get an error message when compiling sine &quot;!!&quot; (I believe you left out a &quot;!&quot;) expects an Int instead of an Integer.<br>

Any idea about how to fix this without converting sel from Integer to Int?<br>
Many thanks<br><font color="#888888">
<br>
Lorenzo<br>
</font></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr"><div>          Alex R</div></div><br>