definition: |
dec :: BinInt -> BinInt dec Zero = Neg IHi dec (Pos IHi) = Zero dec (Pos (O n)) = Pos (pred (O n)) dec (Pos (I n)) = Pos (O n) dec (Neg n) = Neg (succ n) |
demand: |
argument 1 |
deterministic: |
deterministic operation |
documentation: |
--- Decrement |
failfree: |
_ |
indeterministic: |
referentially transparent operation |
infix: |
no fixity defined |
iotype: |
{({Zero}) |-> {Neg} || ({Pos}) |-> {Pos,Zero} || ({Neg}) |-> {Neg}} |
name: |
dec |
precedence: |
no precedence defined |
result-values: |
{Neg,Pos,Zero} |
signature: |
BinInt -> BinInt |
solution-complete: |
operation might suspend on free variables |
terminating: |
yes |
totally-defined: |
possibly non-reducible on same data term |