[Haskell-cafe] let vs. where

Bulat Ziganshin bulat.ziganshin at gmail.com
Thu Nov 15 09:02:24 EST 2007


Hello Henning,

Thursday, November 15, 2007, 2:31:07 PM, you wrote:

> Btw. I would write here
>   min 1 (max (-1) x)
>  or even better define a function for such clipping, since it is needed
> quite often.

min 1 . max (-1)  is pretty standard, although i renamed them:
atMax 1 . atLeast (-1)


-- 
Best regards,
 Bulat                            mailto:Bulat.Ziganshin at gmail.com



More information about the Haskell-Cafe mailing list