This is an automated email from the ASF dual-hosted git repository.
paulk pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/groovy-website.git
The following commit(s) were added to refs/heads/asf-site by this push:
new 15778dc add groupByMany blog post (minor tweaks)
15778dc is described below
commit 15778dce715da79b41000843a6b4dea1adffdeb3
Author: Paul King <[email protected]>
AuthorDate: Tue Dec 2 11:57:08 2025 +1000
add groupByMany blog post (minor tweaks)
---
site/src/site/blog/fruity-eclipse-grouping.adoc | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/site/src/site/blog/fruity-eclipse-grouping.adoc
b/site/src/site/blog/fruity-eclipse-grouping.adoc
index 3f2d14b..d7bb3fd 100644
--- a/site/src/site/blog/fruity-eclipse-grouping.adoc
+++ b/site/src/site/blog/fruity-eclipse-grouping.adoc
@@ -235,12 +235,9 @@ as this example shows:
[source,groovy]
----
var fruitColors = Multimaps.mutable.set.empty()
-fruitColors.put('red', '🍒')
-fruitColors.put('red', '🍎')
-fruitColors.put('green', '🍎')
-fruitColors.put('yellow', '🍌')
+fruitColors.putAll('red', ['🍒', '🍎'])
+fruitColors.putAll('green', ['🍎', '🍌', '🥑'])
fruitColors.put('green', '🍌')
-fruitColors.put('green', '🥑')
println fruitColors
println fruitColors.flip()
----