Skip to content

Enumerable#sum for empty array #247

@boomerang

Description

@boomerang

I use Enumerable#sum a lot and just upgraded from version 2.9.3 to 3.0 and the behaviour changed.

[].sum should == 0 but i get nil instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions