Muex.Mutator.ExtendedMath (Muex v0.8.0)

View Source

Mutator for integer division/remainder and bitwise operators that the Arithmetic mutator (+, -, *, /) does not cover.

Swaps each operator for a related one with different behaviour:

  • rem <-> div
  • band <-> bor (and the operator forms &&& <-> |||)
  • bsl <-> bsr (and the operator forms <<< <-> >>>)

Only binary (two-operand) forms are mutated. Module-qualified calls such as Bitwise.band/2 are left alone; the imported operator/function forms are the common case.