Feb 25, 2017 · 1 min read
const highpass = cutoff => n => n >= cutoff;
const gt4 = cutoff(4); // highpass() returns a new functionshould be
const highpass = cutoff => n => n >= cutoff;
const gt4 = highpass(4); // highpass() returns a new functionconst highpass = cutoff => n => n >= cutoff;
const gt4 = cutoff(4); // highpass() returns a new functionshould be
const highpass = cutoff => n => n >= cutoff;
const gt4 = highpass(4); // highpass() returns a new function