CurryInfo: binint-3.1.0 / Data.BinInt.quotRemInteger

definition: Info
 
quotRemInteger :: BinInt -> BinInt -> (BinInt, BinInt)
quotRemInteger _       Zero    = failed -- division by zero is not defined
quotRemInteger Zero    (Pos _) = (Zero, Zero)
quotRemInteger Zero    (Neg _) = (Zero, Zero)
quotRemInteger (Pos x) (Pos y) = quotRemNat x y
quotRemInteger (Neg x) (Pos y) = let (d, m) = quotRemNat x y in (neg d, neg m)
quotRemInteger (Pos x) (Neg y) = let (d, m) = quotRemNat x y in (neg d,     m)
quotRemInteger (Neg x) (Neg y) = let (d, m) = quotRemNat x y in (d    , neg m)
demand: Info
 arguments 1 2
deterministic: Info
 deterministic operation
documentation: Info
 
Quotient and Remainder, truncated against zero
failfree: Info
 <FAILING>
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {({Zero},{Pos}) |-> {(,)} || ({Pos},{Pos}) |-> {(,)} || ({Neg},{Pos}) |-> {(,)} || ({Zero},{Neg}) |-> {(,)} || ({Pos},{Neg}) |-> {(,)} || ({Neg},{Neg}) |-> {(,)}}
name: Info
 quotRemInteger
precedence: Info
 no precedence defined
result-values: Info
 {(,)}
signature: Info
 BinInt -> BinInt -> (BinInt, BinInt)
solution-complete: Info
 operation might suspend on free variables
terminating: Info
 possibly non-terminating
totally-defined: Info
 possibly non-reducible on same data term