[
https://issues.apache.org/jira/browse/GROOVY-11604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17941428#comment-17941428
]
ASF GitHub Bot commented on GROOVY-11604:
-----------------------------------------
paulk-asert opened a new pull request, #2180:
URL: https://github.com/apache/groovy/pull/2180
(no comment)
> Add returnEarly boolean variant for DGM#chop
> --------------------------------------------
>
> Key: GROOVY-11604
> URL: https://issues.apache.org/jira/browse/GROOVY-11604
> Project: Groovy
> Issue Type: Improvement
> Reporter: Paul King
> Priority: Major
> Labels: breaking
>
> To support these two differing behaviors:
> {code:groovy}
> assert ['a', 'b', 'c', 'd', 'e'].chop(false, 1, 2, 3, 3, 3) == [['a'], ['b',
> 'c'], ['d', 'e'], [], []]
> assert ['a', 'b', 'c', 'd', 'e'].chop(true, 1, 2, 3, 3, 3) == [['a'], ['b',
> 'c'], ['d', 'e']]
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)