enum.reduce(initial, sym) â objenum.reduce(sym) â objenum.reduce(initial) { |memo, obj| block } â objenum.reduce { |memo, obj| block } â obj
Instance Public methods
Combines all elements of enum by applying a binary operation,
specified by a block or a symbol that names a method or operator.
If you specify a block, then for each element in enum the block is
passed an accumulator value (memo) and the element. If you specify
a symbol instead, then each element in