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:[EMAIL PROTECTED]

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to