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