Hi
ord :: Char -> Int
ord c = sum [1 | x <- ['\0'..'\255'], x < c]

Any comments? Any alternatives?
Cheers, Paul

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

Reply via email to