[jira] [Commented] (GROOVY-11146) Consider supporting flattening of Optionals in flatten/collectMany

2023-08-02 Thread ASF GitHub Bot (Jira)
[ https://issues.apache.org/jira/browse/GROOVY-11146?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17750554#comment-17750554 ] ASF GitHub Bot commented on GROOVY-11146: - sonatype-lift[bot] commented on PR #1926: URL:

[GitHub] [groovy] sonatype-lift[bot] commented on pull request #1926: GROOVY-11146: Support flattening of Optionals in flatten

2023-08-02 Thread via GitHub
sonatype-lift[bot] commented on PR #1926: URL: https://github.com/apache/groovy/pull/1926#issuecomment-1663242051 ## Sonatype Lift is retiring Sonatype Lift will be retiring on Sep 12, 2023, with its analysis stopping on Aug 12, 2023. We understand that this news may come as a

[jira] [Commented] (GROOVY-11146) Consider supporting flattening of Optionals in flatten/collectMany

2023-08-02 Thread ASF GitHub Bot (Jira)
[ https://issues.apache.org/jira/browse/GROOVY-11146?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17750553#comment-17750553 ] ASF GitHub Bot commented on GROOVY-11146: - paulk-asert opened a new pull request, #1926: URL:

[jira] [Assigned] (GROOVY-11146) Consider supporting flattening of Optionals in flatten/collectMany

2023-08-02 Thread Paul King (Jira)
[ https://issues.apache.org/jira/browse/GROOVY-11146?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Paul King reassigned GROOVY-11146: -- Assignee: Paul King > Consider supporting flattening of Optionals in flatten/collectMany >

[jira] [Updated] (GROOVY-11146) Consider supporting flattening of Optionals in flatten/collectMany

2023-08-02 Thread Paul King (Jira)
[ https://issues.apache.org/jira/browse/GROOVY-11146?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Paul King updated GROOVY-11146: --- Description: The functional idiom of map/collect then flatten is so common that we normally have

[jira] [Created] (GROOVY-11146) Consider supporting flattening of Optionals in flatten/collectMany

2023-08-02 Thread Paul King (Jira)
Paul King created GROOVY-11146: -- Summary: Consider supporting flattening of Optionals in flatten/collectMany Key: GROOVY-11146 URL: https://issues.apache.org/jira/browse/GROOVY-11146 Project: Groovy

[jira] [Resolved] (GROOVY-11145) add a join() method for Iterable/List

2023-08-02 Thread Eric Milles (Jira)
[ https://issues.apache.org/jira/browse/GROOVY-11145?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Eric Milles resolved GROOVY-11145. -- Fix Version/s: 5.0.0-alpha-1 Resolution: Fixed

[jira] [Assigned] (GROOVY-11145) add a join() method for Iterable/List

2023-08-02 Thread Eric Milles (Jira)
[ https://issues.apache.org/jira/browse/GROOVY-11145?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Eric Milles reassigned GROOVY-11145: Assignee: Eric Milles > add a join() method for Iterable/List >

[jira] [Commented] (GROOVY-11145) add a join() method for Iterable/List

2023-08-02 Thread Jochen Theodorou (Jira)
[ https://issues.apache.org/jira/browse/GROOVY-11145?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17750438#comment-17750438 ] Jochen Theodorou commented on GROOVY-11145: --- I think we made the design decision that

[jira] [Commented] (GROOVY-11143) Add extension method to source unit (same locality as static import)

2023-08-02 Thread Jochen Theodorou (Jira)
[ https://issues.apache.org/jira/browse/GROOVY-11143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17750428#comment-17750428 ] Jochen Theodorou commented on GROOVY-11143: --- Yeah, that explains it in great detail for me.

[jira] [Commented] (GROOVY-11145) add a join() method for Iterable/List

2023-08-02 Thread Eric Milles (Jira)
[ https://issues.apache.org/jira/browse/GROOVY-11145?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17750421#comment-17750421 ] Eric Milles commented on GROOVY-11145: -- Does the type checker look for the 1 method with 1

[jira] [Comment Edited] (GROOVY-11145) add a join() method for Iterable/List

2023-08-02 Thread Eric Milles (Jira)
[ https://issues.apache.org/jira/browse/GROOVY-11145?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17750393#comment-17750393 ] Eric Milles edited comment on GROOVY-11145 at 8/2/23 4:19 PM: -- If you

[jira] [Commented] (GROOVY-11070) ObjectArrayStaticTypesHelper does not handle negative indices

2023-08-02 Thread Eric Milles (Jira)
[ https://issues.apache.org/jira/browse/GROOVY-11070?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17750396#comment-17750396 ] Eric Milles commented on GROOVY-11070: -- I am considering one additional commit to this that would

[jira] [Commented] (GROOVY-11145) add a join() method for Iterable/List

2023-08-02 Thread Eric Milles (Jira)
[ https://issues.apache.org/jira/browse/GROOVY-11145?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17750393#comment-17750393 ] Eric Milles commented on GROOVY-11145: -- If you checked for {{null}} as the separator, could you

[jira] [Commented] (GROOVY-11143) Add extension method to source unit (same locality as static import)

2023-08-02 Thread Eric Milles (Jira)
[ https://issues.apache.org/jira/browse/GROOVY-11143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17750354#comment-17750354 ] Eric Milles commented on GROOVY-11143: -- We used to write a copy constructor like this:

[jira] [Updated] (GROOVY-11145) add a join() method for Iterable/List

2023-08-02 Thread Paul King (Jira)
[ https://issues.apache.org/jira/browse/GROOVY-11145?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Paul King updated GROOVY-11145: --- Priority: Minor (was: Major) > add a join() method for Iterable/List >

[jira] [Updated] (GROOVY-11145) add a join() method for Iterable/List

2023-08-02 Thread Jochen Theodorou (Jira)
[ https://issues.apache.org/jira/browse/GROOVY-11145?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jochen Theodorou updated GROOVY-11145: -- Description: {code:Java} @groovy.transform.CompileStatic def m() { ["a",

[jira] [Updated] (GROOVY-11145) add a join() method for Iterable/List

2023-08-02 Thread Jochen Theodorou (Jira)
[ https://issues.apache.org/jira/browse/GROOVY-11145?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jochen Theodorou updated GROOVY-11145: -- Issue Type: Improvement (was: Bug) > add a join() method for Iterable/List >

[jira] [Commented] (GROOVY-11145) add a join() method for Iterable/List

2023-08-02 Thread Jochen Theodorou (Jira)
[ https://issues.apache.org/jira/browse/GROOVY-11145?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17750271#comment-17750271 ] Jochen Theodorou commented on GROOVY-11145: --- I updated the issue > add a join() method for

[jira] [Commented] (GROOVY-11145) Iterable DGM not recognized for List

2023-08-02 Thread Paul King (Jira)
[ https://issues.apache.org/jira/browse/GROOVY-11145?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17750258#comment-17750258 ] Paul King commented on GROOVY-11145: There is a {{join(Iterable, String)}} DGM method. This is the

[jira] [Created] (GROOVY-11145) Iterable DGM not recognized for List

2023-08-02 Thread Jochen Theodorou (Jira)
Jochen Theodorou created GROOVY-11145: - Summary: Iterable DGM not recognized for List Key: GROOVY-11145 URL: https://issues.apache.org/jira/browse/GROOVY-11145 Project: Groovy Issue

[jira] (GROOVY-10893) collectEntries accepts one or more entry values for each iteration but not zero (via null)

2023-08-02 Thread Paul King (Jira)
[ https://issues.apache.org/jira/browse/GROOVY-10893 ] Paul King deleted comment on GROOVY-10893: was (Author: paulk): The collectMany extension is similar to flatMap, and that would work by flattening (potentially empty) lists or non-empty

[jira] [Commented] (GROOVY-10893) collectEntries accepts one or more entry values for each iteration but not zero (via null)

2023-08-02 Thread Paul King (Jira)
[ https://issues.apache.org/jira/browse/GROOVY-10893?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17750245#comment-17750245 ] Paul King commented on GROOVY-10893: The collectMany extension is similar to flatMap, and that

[jira] [Commented] (GROOVY-11143) Add extension method to source unit (same locality as static import)

2023-08-02 Thread Jochen Theodorou (Jira)
[ https://issues.apache.org/jira/browse/GROOVY-11143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17750238#comment-17750238 ] Jochen Theodorou commented on GROOVY-11143: --- [~emilles] "The use method creates a thread