You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by gi...@apache.org on 2026/04/23 07:24:46 UTC

(groovy-dev-site) branch asf-site updated: 2026/04/23 07:24:42: Generated dev website from groovy-website@dbdd1de

This is an automated email from the ASF dual-hosted git repository.

asf-gitbox-commits pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/groovy-dev-site.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new 6783ba9  2026/04/23 07:24:42: Generated dev website from groovy-website@dbdd1de
6783ba9 is described below

commit 6783ba9ec682b718cc3308c1f15b503b8d17ea86
Author: jenkins <bu...@apache.org>
AuthorDate: Thu Apr 23 07:24:42 2026 +0000

    2026/04/23 07:24:42: Generated dev website from groovy-website@dbdd1de
---
 blog/groovy-haiku-processing.html |  10 +++++-----
 blog/img/DonaldRaabHaikus.png     | Bin 0 -> 87405 bytes
 search/search-index.json          |   2 +-
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/blog/groovy-haiku-processing.html b/blog/groovy-haiku-processing.html
index 2baa6bb..8098f3c 100644
--- a/blog/groovy-haiku-processing.html
+++ b/blog/groovy-haiku-processing.html
@@ -75,7 +75,7 @@ with its multi-line strings, so we won&#8217;t elaborate further on that aspect.
 <p>Here is some of Donald&#8217;s creative writing:</p>
 </div>
 <div class="paragraph">
-<p><span class="image"><img src="https://miro.medium.com/v2/resize:fit:1400/format:webp/1*zcMH0Q37PFrGS4bC2EHqiw.png" alt="text of Donald Raab&#8217;s haikus"></span></p>
+<p><span class="image"><img src="img/DonaldRaabHaikus.png" alt="text of Donald Raab&#8217;s haikus"></span></p>
 </div>
 <div class="paragraph">
 <p>In his examples, he processes those examples in various ways. We&#8217;ll look at doing the same
@@ -164,7 +164,7 @@ and duplicate sets.</p>
     .findAll(Character::isAlphabetic)
     .collect(Character::toLowerCase)
     .collect(Character::toString)
-    .countBy{ it }
+    .countBy()
     .split(uniqueAndDuplicatePartitions)
     *.size() == [0, 22]</code></pre>
 </div>
@@ -201,7 +201,7 @@ that we will use for sorting (in reverse order):</p>
     .findAll(Character::isAlphabetic)
     .collect(Character::toLowerCase)
     .collect(Character::toString)
-    .countBy{ it }
+    .countBy()
     .sort(byCountDescending)
     .take(3) == [e:94, t:65, i:62]</code></pre>
 </div>
@@ -301,7 +301,7 @@ and it is a little easier to understand:</p>
 <pre class="prettyprint highlight"><code data-lang="groovy">assert haiku.codePoints().toArray()
     .findAll(Character::isAlphabetic)
     .collect(Letter::new)
-    .countBy{ it }
+    .countBy()
     .collect(LetterByCount::new)
     .toSorted(LetterByCount.comparingByCount().reversed())
     .take(3)
@@ -325,7 +325,7 @@ assert haiku.codePoints().toArray()
     .findAll(Character::isAlphabetic)
     .collect(Character::toLowerCase)
     .collect(Character::toString)
-    .countBy{ it }
+    .countBy()
     .groupBy{ k, v -&gt; v }
     .sort(byCountReversed)
     .take(15)
diff --git a/blog/img/DonaldRaabHaikus.png b/blog/img/DonaldRaabHaikus.png
new file mode 100644
index 0000000..1c0ec96
Binary files /dev/null and b/blog/img/DonaldRaabHaikus.png differ
diff --git a/search/search-index.json b/search/search-index.json
index 3358229..5f36a72 100644
--- a/search/search-index.json
+++ b/search/search-index.json
@@ -345,7 +345,7 @@
     {
         "id": "blog/groovy-haiku-processing.html",
         "title": "The Apache Groovy programming language - Blogs - Groovy&trade; Haiku processing",
-        "content": "The Apache Groovy programming language - Blogs - Groovy&trade; Haiku processing Socialize Discuss on the mailing list Groovy on X Groovy on Bluesky Groovy on Mastodon Groovy on LinkedIn Events and conferences Source code on GitHub Report issues in Jira Stack Overflow questions Slack Community You are using an outdated browser. Please upgrade your browser to improve your experience. Apache Groovy&trade; Learn Documentation Download Support Contribute Ecosystem Blog pos [...]
+        "content": "The Apache Groovy programming language - Blogs - Groovy&trade; Haiku processing Socialize Discuss on the mailing list Groovy on X Groovy on Bluesky Groovy on Mastodon Groovy on LinkedIn Events and conferences Source code on GitHub Report issues in Jira Stack Overflow questions Slack Community You are using an outdated browser. Please upgrade your browser to improve your experience. Apache Groovy&trade; Learn Documentation Download Support Contribute Ecosystem Blog pos [...]
         "url": "blog/groovy-haiku-processing.html",
         "site": "dev"
     },