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

Provide a split(closure) DGM method on collections

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.7-beta-1
    • 1.6-rc-1, 1.5.8, 1.7-beta-1
    • None
    • None

    Description

      Based on mailing list feedback it seems like split() is worthwhile but partition() can almost as easily be replicated using groupBy so maybe not worth it.

      The functionality is the same as findAll() but returns both the accepted and rejected elements in two lists.

      Attachments

        Activity

          People

            paulk Paul King
            paulk Paul King
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: