definition: |
digitToInt :: Char -> Int digitToInt c | isDigit c = ord c - ord '0' | ord c >= ord 'A' && ord c <= ord 'F' = ord c - ord 'A' + 10 | ord c >= ord 'a' && ord c <= ord 'f' = ord c - ord 'a' + 10 | otherwise = error "Char.digitToInt: argument is not a digit" |
demand: |
no demanded arguments |
deterministic: |
deterministic operation |
documentation: |
Converts a (hexadecimal) digit character into an integer. |
failfree: |
_ |
indeterministic: |
referentially transparent operation |
infix: |
no fixity defined |
iotype: |
{(_) |-> _} |
name: |
digitToInt |
precedence: |
no precedence defined |
result-values: |
_ |
signature: |
Prelude.Char -> Prelude.Int |
solution-complete: |
operation might suspend on free variables |
terminating: |
possibly non-terminating |
totally-defined: |
possibly non-reducible on same data term |