P. 1
haskell2010

haskell2010

|Views: 71|Likes:
Published by nricci02

More info:

Categories:Types, Research, Science
Published by: nricci02 on Apr 14, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

04/28/2013

pdf

text

original

digitToInt :: Char -> Int

Convert a single digit Char to the corresponding Int. This function fails unless its argument satisfies
isHexDigit, but recognises both upper and lower-case hexadecimal digits (i.e. ’0’..’9’, ’a’..’f’,

’A’..’F’).

intToDigit :: Int -> Char

Convert an Int in the range 0..15 to the corresponding single digit Char. This function fails on other
inputs, and generates lower-case hexadecimal digits.

176

CHAPTER 16. DATA.CHAR

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->