Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-2411

[].sum() should return 0 not null.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5
    • Fix Version/s: 1.5.2
    • Component/s: groovy-jdk
    • Labels:
      None

      Description

      This would make computation more convenient, as I wouldn't have to explicitly check for the empty list.

        Attachments

          Activity

            People

            • Assignee:
              paulk Paul King
              Reporter:
              mellis David A. Mellis
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: