reduceRight top-level constant
An alias for the foldRight
function.
reduceRight
serves the same purpose and functionality as foldRight
.
As with reduceLeft
, in certain programming contexts or traditions,
"reduce" might be more commonly used or understood than "fold". By
providing this alias, users can select the terminology they prefer.
Usage:
var result = reduceRight(myList, initialValue, myFunction);
Note: It's crucial that the functionality and behavior of foldRight
is
comprehensively documented since reduceRight
directly references it.
Implementation
const reduceRight = foldRight;