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

The count() in DefaultGroovyMethod should support counting by a Closure

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5.6
    • 1.8-beta-1
    • None
    • None

    Description

      e.g. def data = [1,2,3,4,5]
      assertEquals( 3, data.count

      { it >1 && it < 5 }

      Attachments

        Activity

          People

            paulk Paul King
            mingfai Mingfai Ma
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: