Implements the homonym function (also known as accumulate, compress, inject, or foldl) present in various programming languages of functional flavor.
See Implementation