[Haskell-cafe] Rewriting Char.ord
PR Stanley
prstanley at ntlworld.com
Sat Sep 29 10:11:20 EDT 2007
Hi
ord :: Char -> Int
ord c = sum [1 | x <- ['\0'..'\255'], x < c]
Any comments? Any alternatives?
Cheers, Paul
More information about the Haskell-Cafe
mailing list