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

Provide a split(closure) DGM method on collections

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.7-beta-1
    • Fix Version/s: 1.6-rc-1, 1.5.8, 1.7-beta-1
    • Component/s: None
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: