[Haskell-beginners] High order function beggining doubt

Igor Pinheiro Leão ivpcl at cin.ufpe.br
Thu Jul 4 01:59:29 CEST 2013


Thank you Emanuel and David!
It worked. Now I have to google in order to better understand function
composition.

Best,
Igor


2013/7/3 David Flicker <dtflicker at gmail.com>

> Hey Igor,
>
> Try using a map and then the function composition operator ".".
> Something like
>
> annexer func list = map (\x -> (func . x)) list
>
> Kind regards,
>
> David
>
>
> On Wed, Jul 3, 2013 at 7:42 PM, Igor Pinheiro Leão <ivpcl at cin.ufpe.br>wrote:
>
>> Oops, my bad.
>> *with.
>>
>>
>> 2013/7/3 Igor Pinheiro Leão <ivpcl at cin.ufpe.br>
>>
>>> Hi there,
>>> let a function whith the following signature:
>>> annexer :: (b -> c) -> [a -> b] -> [a -> c]
>>> How can i do that?
>>>
>>> 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
>>
>>
>
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://www.haskell.org/mailman/listinfo/beginners
>
>


-- 
Igor Vinícius
Graduando em Ciência da Computação
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20130703/eb2a28aa/attachment-0001.htm>


More information about the Beginners mailing list