
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

Oops, my bad.
*with.
2013/7/3 Igor Pinheiro Leão
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

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
Oops, my bad. *with.
2013/7/3 Igor Pinheiro Leão
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@haskell.org http://www.haskell.org/mailman/listinfo/beginners

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
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
wrote: Oops, my bad. *with.
2013/7/3 Igor Pinheiro Leão
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@haskell.org http://www.haskell.org/mailman/listinfo/beginners
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners
-- Igor Vinícius Graduando em Ciência da Computação
participants (3)
-
David Flicker
-
Emanuel Koczwara
-
Igor Pinheiro Leão