So You Want to be a Functional Programmer (Part 2)
Charles Scalfani

Charles… Great article! May I suggest a small improvement? The “makeAdder” function seems out of the flow with the prior examples (validating values). Perhaps if it was replaced with something like:

function makeRangeCheck(lowValue, highValue) {
return function rangeCheck(value) {
return lowValue <= value && value <= highValue;

Apologies for the rubbish formatting. I can’t for the life of me figure out how to do a proper code sample on Medium.