You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (JIRA)" <ji...@apache.org> on 2018/08/07 11:11:00 UTC

[jira] [Created] (GROOVY-8733) Groovy could provide a chop DGM method

Paul King created GROOVY-8733:
---------------------------------

             Summary: Groovy could provide a chop DGM method
                 Key: GROOVY-8733
                 URL: https://issues.apache.org/jira/browse/GROOVY-8733
             Project: Groovy
          Issue Type: Improvement
            Reporter: Paul King


The method would chop the list at a specified index (or multiple index values).
{{assert ['a', 'b', 'c', 'd', 'e'].chop(2) == [['a', 'b', 'c'], ['d', 'e']]}}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)