This is an automated email from the ASF dual-hosted git repository.
git-site-role 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 6c364a2 2025/04/10 22:44:15: Generated dev website from
groovy-website@39a9b98
6c364a2 is described below
commit 6c364a2a8904a4db37404aea26922cd54bfe434a
Author: jenkins <[email protected]>
AuthorDate: Thu Apr 10 22:44:15 2025 +0000
2025/04/10 22:44:15: Generated dev website from groovy-website@39a9b98
---
blog/exploring-gatherers4j.html | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/blog/exploring-gatherers4j.html b/blog/exploring-gatherers4j.html
index 4aa8143..e8e88b9 100644
--- a/blog/exploring-gatherers4j.html
+++ b/blog/exploring-gatherers4j.html
@@ -462,7 +462,7 @@ assert abc.stream()
<pre class="prettyprint highlight"><code data-lang="groovy"><div
style="background-color: #ddddee">
assert abc.iterator().withIndex().tapEvery { tuple ->
println "Element $tuple.first at index $tuple.last"
-}*.first() == abc
+}*.first == abc
<br/></div></code></pre>
</div>
</div>
@@ -856,12 +856,12 @@ but you either use <code>findAllLazy</code> with
<code>withIndex</code>, or <cod
<pre class="prettyprint highlight"><code data-lang="groovy"><div
style="background-color: #ddddee">
// drop every 3rd
assert ('A'..'G').iterator().withIndex()
- .findAllLazy { mext, i -> i % 3 }
+ .findAllLazy { next, i -> i % 3 }
.toList()*.first == ['B', 'C', 'E', 'F']
// take every 3rd
assert ('A'..'G').iterator().withIndex()
- .findAllLazy { mext, i -> i % 3 == 0 }
+ .findAllLazy { next, i -> i % 3 == 0 }
.toList()*.first == ['A', 'D', 'G']
// also take every 3rd