Groovy
  1. Groovy
  2. GROOVY-3106

Provide a split(closure) DGM method on collections

    Details

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

        Activity

        paulk@asert.com.au created issue -
        Paul King made changes -
        Field Original Value New Value
        Summary Provide a split() DGM method Provide a split(closure) DGM method on collections
        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. 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.
        Paul King made changes -
        Resolution Fixed [ 1 ]
        Fix Version/s 1.5.8 [ 14630 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Paul King made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 13:32:57 UTC 2015 [ 1428240777691 ]
        Mark Thomas made changes -
        Workflow jira [ 12732110 ] Default workflow, editable Closed status [ 12743951 ]
        Mark Thomas made changes -
        Project Import Mon Apr 06 02:11:23 UTC 2015 [ 1428286283443 ]
        Mark Thomas made changes -
        Workflow jira [ 12967238 ] Default workflow, editable Closed status [ 12974833 ]
        Mark Thomas made changes -
        Reporter Paul King [ paulk@asert.com.au ] Paul King [ paulk ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development