For starters...

Marco Túlio Gontijo e Silva marcot at riseup.net
Thu Jul 17 10:52:49 EDT 2008


Hi.

Em Qui, 2008-07-17 às 11:42 -0300, Felipe Lessa escreveu:
> f = sum &&& foldr max 0 >>> uncurry (-)

You can replace
> foldr max 0
with simply
> foldr1 max
or even
> maximum
So you get:
> f = sum &&& maximum >>> uncurry (-)

Greetings.
-- 
Marco Túlio Gontijo e Silva
Página: http://marcotmarcot.googlepages.com/
Blog: http://marcotmarcot.blogspot.com/
Correio: marcot at riseup.net
XMPP: marcot at jabber.org
IRC: marcot at irc.freenode.net
Telefone: 25151920
Celular: 98116720
Endereço:
 Rua Turfa, 639/701
 Prado 30410-370
 Belo Horizonte/MG Brasil



More information about the Beginners mailing list