GitHub user rvprasad opened a pull request: https://github.com/apache/groovy/pull/682
GroovyCollections.combinations(Iterable) exhibits incorrect (asymmetric) behavior. The fix ensures no combination is returned if any of the input iterables to GroovyCollections.combinations() is empty. https://issues.apache.org/jira/browse/GROOVY-8537 You can merge this pull request into a Git repository by running: $ git pull https://github.com/rvprasad/groovy GROOVY-8537 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/groovy/pull/682.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #682 ---- commit 8e6d955f7a519dbeac737b77930d7007d9681912 Author: Venkatesh-Prasad Ranganath <rvprasad@...> Date: 2018-04-08T17:45:18Z Fixes issue GROOVY-8537 Ensures no combination is returned if any of the input iterables to GroovyCollections.combinations() is empty. ---- ---