Hi all,It seems to me that base is missing the very standard function `clamp :: Ord a => a -> a -> a -> a`:```haskellclamp :: Ord a => a -> a -> a -> aclamp low high = min high .max low```I propose it be added to Data.Ord. It's useful, generic, and non-trivial to get right (the "big" number goes with "min" -- causes me cognitive dissonance every time.)Thanks,Sandy_______________________________________________
Libraries mailing list
Libraries@haskell. org
http:// mail. haskell. org/ cgi-bin/ mailman/ listinfo/ libraries