[Haskell-cafe] The maximum/minimum asymmetry

Albert Y. C. Lai trebla at vex.net
Mon Sep 5 16:21:55 CEST 2011


On 11-09-05 12:44 AM, Mario Blažević wrote:
> I was recently surprised to discover that the maximum and maximumBy
> functions always return the *last* maximum, while minimum and minimumBy
> return the *first* minimum in the list.

Though not beautifully symmetric, it's beautifully dual!




More information about the Haskell-Cafe mailing list