[Haskell-beginners] Filter to a list of function

Benjamin Edwards edwards.benj at gmail.com
Sun Jul 7 19:49:45 CEST 2013


But lists only contain one type, so I am not sure what you want to do here.
Get elements that are true for all filters? For at least one filter? There
is no sub typing relationship...
On 7 Jul 2013 18:34, "Igor Pinheiro Leão" <ivpcl at cin.ufpe.br> wrote:

> Hum.. really sorry about the grammar mistakes.
>
>
> 2013/7/7 Igor Pinheiro Leão <ivpcl at cin.ufpe.br>
>
>> Hi Guys,
>> sorry in upsetting you again.
>> Is there a way in which I can filter one list of function, one function
>> at time, to a list of elements, declaring this and only this function.
>>
>> It would be exactly like this:
>>
>> specifcFilter :: [(a->Bool)] -> [a] -> [a]
>>
>> where for each element of type 'a' on the second list it would exist a
>> function on  the first list that would be applied to it filtering.
>>
>> Kind regards,
>> Igor
>>
>>
>> --
>> Igor Vinícius
>> Graduando em Ciência da Computação
>>
>
>
>
> --
> Igor Vinícius
> Graduando em Ciência da Computação
>
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://www.haskell.org/mailman/listinfo/beginners
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20130707/6cf2b889/attachment.htm>


More information about the Beginners mailing list