Added Ruby styles for Array#reduce.