Paul King created GROOVY-10982:
----------------------------------

             Summary: Provide missing identity closure CountBy variants
                 Key: GROOVY-10982
                 URL: https://issues.apache.org/jira/browse/GROOVY-10982
             Project: Groovy
          Issue Type: Improvement
            Reporter: Paul King


Minor. Would allow:
{code}
aggregate.countBy()
{code}
instead of either of these:
{code}
aggregate.countBy{ it }
aggregate.countBy(Closure.IDENTITY)
{code}

An alternative could be to support multiple closures like we do for {{groupBy}} 
with IDENTITY being the fallback for the no varargs case.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to