groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul King (JIRA)" <j...@apache.org>
Subject [jira] [Created] (GROOVY-8733) Groovy could provide a chop DGM method
Date Tue, 07 Aug 2018 11:11:00 GMT
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)

Mime
View raw message