Added an "accumulate" iterable method