Could you make this a function expression instead of a declaration, e.g. `var curryRight = function () {`?