|
definition: |
showCTerm :: CTerm -> String
showCTerm CBot = "_"
showCTerm (CVar i) = 'x' : show i
showCTerm (CCons f []) = f
showCTerm (CCons f args@(_:_)) =
f ++ "(" ++ intercalate "," (map showCTerm args) ++ ")"
|
|
demand: |
argument 1 |
|
deterministic: |
deterministic operation |
|
documentation: |
show a constructor term |
|
failfree: |
_ |
|
indeterministic: |
referentially transparent operation |
|
infix: |
no fixity defined |
|
iotype: |
{({CBot}) |-> {:} || ({CVar}) |-> {:} || ({CCons}) |-> _}
|
|
name: |
showCTerm |
|
precedence: |
no precedence defined |
|
result-values: |
_ |
|
signature: |
CTerm -> String |
|
solution-complete: |
operation might suspend on free variables |
|
terminating: |
possibly non-terminating |
|
totally-defined: |
possibly non-reducible on same data term |