-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
refactorA code change that neither fixes a bug nor adds a featureA code change that neither fixes a bug nor adds a feature
Description
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);
Metadata
Metadata
Assignees
Labels
refactorA code change that neither fixes a bug nor adds a featureA code change that neither fixes a bug nor adds a feature