definition:
|
cutDTerm :: Int -> DTerm -> DTerm
cutDTerm _ DBot = DBot
cutDTerm _ CutVar = CutVar
cutDTerm d (DCons c args) | d==0 = CutVar
| otherwise = DCons c (map (cutDTerm (d-1)) args)
|
demand:
|
argument 2
|
deterministic:
|
deterministic operation
|
documentation:
|
-- cut a depth-k term larger than a given depth:
|
failfree:
|
(_, _)
|
indeterministic:
|
referentially transparent operation
|
infix:
|
no fixity defined
|
iotype:
|
{(_,{DBot}) |-> {DBot} || (_,{CutVar}) |-> {CutVar} || (_,{DCons}) |-> {CutVar,DCons}}
|
name:
|
cutDTerm
|
precedence:
|
no precedence defined
|
result-values:
|
{CutVar,DBot,DCons}
|
signature:
|
Prelude.Int -> DTerm -> DTerm
|
solution-complete:
|
operation might suspend on free variables
|
terminating:
|
possibly non-terminating
|
totally-defined:
|
possibly non-reducible on same data term
|