[Haskell-beginners] MaximumBy

Francesco Ariis fa-ml at ariis.it
Fri May 22 19:10:43 UTC 2020


Hello Alexander,

Il 22 maggio 2020 alle 20:20 Alexander Chen ha scritto:
> Hi,
> 
> I want to re-write a function maximumBy (its an assignment).
> 
> However, I don't get how it works.
> 
> >maximumBy compare [1,53,9001, 10]
> 9001
> 
> but what does it actually do to get there? 

Do you know how to use foldr and friends?


More information about the Beginners mailing list