<div dir="ltr">Thank you Benjamin and Brent!<br>Brent, yes, that was exactly what i wanted to do. Thank you!<br><br>Kind regards,<br>Igor<br><div><div><div><div><br></div></div></div></div></div><div class="gmail_extra"><br>
<br><div class="gmail_quote">2013/7/7 Brent Yorgey <span dir="ltr">&lt;<a href="mailto:byorgey@seas.upenn.edu" target="_blank">byorgey@seas.upenn.edu</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
No need to apologize for grammar. =) There are lots of people in the<br>
Haskell community with many different levels of English fluency, we<br>
all just try to communicate as best we can.<br>
<br>
As for your question, I am not quite sure I understand what you want.<br>
Do you mean that you want to &quot;zip&quot; the lists together, applying each<br>
function to one element?  As in<br>
<br>
  specificFilter [(&gt;3), even, (&lt;19)] [6, 7, 8] = [6,8]<br>
<br>
because 6&gt;3 and 8&gt;19 (but 7 is not even)?<br>
<br>
If that is what you mean, then you could do something like<br>
<br>
  specificFilter ps xs = map snd . filter fst $ zipWith (\p x -&gt; (p x, x)) ps xs<br>
<br>
If you mean something else, then maybe you could give some examples of<br>
what you want?<br>
<span class="HOEnZb"><font color="#888888"><br>
-Brent<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Sun, Jul 07, 2013 at 02:32:21PM -0300, Igor Pinheiro Leão wrote:<br>
&gt; Hum.. really sorry about the grammar mistakes.<br>
&gt;<br>
&gt;<br>
&gt; 2013/7/7 Igor Pinheiro Leão &lt;<a href="mailto:ivpcl@cin.ufpe.br">ivpcl@cin.ufpe.br</a>&gt;<br>
&gt;<br>
&gt; &gt; Hi Guys,<br>
&gt; &gt; sorry in upsetting you again.<br>
&gt; &gt; Is there a way in which I can filter one list of function, one function at<br>
&gt; &gt; time, to a list of elements, declaring this and only this function.<br>
&gt; &gt;<br>
&gt; &gt; It would be exactly like this:<br>
&gt; &gt;<br>
&gt; &gt; specifcFilter :: [(a-&gt;Bool)] -&gt; [a] -&gt; [a]<br>
&gt; &gt;<br>
&gt; &gt; where for each element of type &#39;a&#39; on the second list it would exist a<br>
&gt; &gt; function on  the first list that would be applied to it filtering.<br>
&gt; &gt;<br>
&gt; &gt; Kind regards,<br>
&gt; &gt; Igor<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; Igor Vinícius<br>
&gt; &gt; Graduando em Ciência da Computação<br>
&gt; &gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Igor Vinícius<br>
&gt; Graduando em Ciência da Computação<br>
<br>
</div></div><div class="HOEnZb"><div class="h5">&gt; _______________________________________________<br>
&gt; Beginners mailing list<br>
&gt; <a href="mailto:Beginners@haskell.org">Beginners@haskell.org</a><br>
&gt; <a href="http://www.haskell.org/mailman/listinfo/beginners" target="_blank">http://www.haskell.org/mailman/listinfo/beginners</a><br>
<br>
<br>
_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org">Beginners@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/beginners" target="_blank">http://www.haskell.org/mailman/listinfo/beginners</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Igor Vinícius<br>Graduando em Ciência da Computação<br>
</div>