[Haskell-cafe] Half-integer

Andrew Coppin andrewcoppin at btinternet.com
Sun Jun 28 10:43:51 EDT 2009


Thomas ten Cate wrote:
> Out of curiosity, what are *you* using it for?
>   

Centering things.

In you have an odd number of items, the middle one will be at position 
0, with the others at integer positions on either side. However, if you 
have an even number, the middle two will be at 0 +- 1/2, and so forth.



More information about the Haskell-Cafe mailing list