|
definition: |
chr :: Int -> Char
chr n | n < 0 = prim_chr 0
| n > 1114111 = prim_chr 1114111
| otherwise = prim_chr $# n
|
|
demand: |
no demanded arguments |
|
deterministic: |
deterministic operation |
|
documentation: |
| Converts a Unicode value into a character. The conversion is total, i.e., for out-of-bound values, the smallest or largest character is generated. |
|
failfree: |
_ |
|
indeterministic: |
referentially transparent operation |
|
infix: |
no fixity defined |
|
iotype: |
{(_) |-> _}
|
|
name: |
chr |
|
precedence: |
no precedence defined |
|
result-values: |
_ |
|
signature: |
Int -> Char |
|
solution-complete: |
operation might suspend on free variables |
|
terminating: |
possibly non-terminating |
|
totally-defined: |
possibly non-reducible on same data term |