Re: MaximumBy (Alexander Chen)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: MaximumBy (Alexander Chen)

nowsnow
maxinumBy::(Foldable t, Ord a) => t a -> a
maxinumBy = foldr1 max

> 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? 

> thanks in advance.

> best,
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> <http://mail.haskell.org/pipermail/beginners/attachments/20200522/7b1cdb0d/attachment-0001.html>


_______________________________________________
Beginners mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners