Skip to content

Enumerable#sum for empty array #247

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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