Github user paulk-asert commented on a diff in the pull request: https://github.com/apache/groovy/pull/376#discussion_r73069688 --- Diff: src/main/org/codehaus/groovy/runtime/DefaultGroovyMethods.java --- @@ -5176,7 +5176,9 @@ public static Map groupBy(Object[] self, List<Closure> closures) { G key = outer.getKey(); List<Map.Entry<K, V>> entries = outer.getValue(); Map<K, V> target = createSimilarMap(self); - putAll(target, entries); --- End diff -- Yes, but feel free to play around with other options if you have a strong preference.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---