Probably just my style preference -- I prefer having the logic in the accumulator -- seem more like the imperative solution.