e.g. instead of
function toDigits(value, precision) {}
do
function toDigits(precision, value) {}
this way we can either auto curry this function or have it curried by default e.g.
const toDigit = (precision) => (value) => ...
// or
const curriedToDigit = autoCurry(toDigit);
and then in userland:
const toTenths = toDigit(2);
const value = toTenths(1.1234);
e.g. instead of
do
this way we can either auto curry this function or have it curried by default e.g.
and then in userland: