Groovy
  1. Groovy
  2. GROOVY-2411

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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.

        Activity

        No work has yet been logged on this issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development