import { mathMod } from "https://deno.land/x/rambda@9.3.0/rambda.js";
R.mathMod
behaves like the modulo operator should mathematically, unlike the %
operator (and by extension, R.modulo
). So while -17 % 5
is -2
, mathMod(-17, 5)
is 3
.
import { mathMod } from "https://deno.land/x/rambda@9.3.0/rambda.js";
R.mathMod
behaves like the modulo operator should mathematically, unlike the %
operator (and by extension, R.modulo
). So while -17 % 5
is -2
, mathMod(-17, 5)
is 3
.