Zastanawiam się, jak mogę przekonwertować Char na Int. E.g.Konwertuj Char na Int
a = '\x2' -- a == 2
-- type of a should be Char
b = charToInt a -- b == 2
-- type of b should be Int
Ale nie mam pojęcia, jak:/
Dzięki z góry
Zastanawiam się, jak mogę przekonwertować Char na Int. E.g.Konwertuj Char na Int
a = '\x2' -- a == 2
-- type of a should be Char
b = charToInt a -- b == 2
-- type of b should be Int
Ale nie mam pojęcia, jak:/
Dzięki z góry
Odkryj i używaj [hoogle] (http://www.haskell.org/hoogle/?hoogle=Char+-%3E+Int). –