Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Haskell

Name: Anonymous 2012-10-15 23:15

Is there a simple way in haskell to convert a char into an int?

Name: Anonymous 2012-10-15 23:24

No need; they're both functions.

Name: Anonymous 2012-10-15 23:26

by editing ghc

Name: Anonymous 2012-10-15 23:50

Scratch that, the above two comments helped.

Is there any way to convert a hex string into an int?

Name: Anonymous 2012-10-16 0:39

read . ("0x"++) :: String -> Int

Don't change these.
Name: Email:
Entire Thread Thread List