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

paulk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/master by this push:
     new fb5aa04930 GROOVY-8162: Update Groovysh to JLine3 (documentation for 
/pipe)
fb5aa04930 is described below

commit fb5aa04930b843126f7eb2688f1b55c258544d8f
Author: Paul King <pa...@asert.com.au>
AuthorDate: Wed Aug 13 19:54:14 2025 +1000

    GROOVY-8162: Update Groovysh to JLine3 (documentation for /pipe)
---
 subprojects/groovy-groovysh/src/spec/doc/groovysh.adoc | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/subprojects/groovy-groovysh/src/spec/doc/groovysh.adoc 
b/subprojects/groovy-groovysh/src/spec/doc/groovysh.adoc
index 833b2560b4..0d2f7a0ae6 100644
--- a/subprojects/groovy-groovysh/src/spec/doc/groovysh.adoc
+++ b/subprojects/groovy-groovysh/src/spec/doc/groovysh.adoc
@@ -669,6 +669,24 @@ as these examples show:
 
 image:assets/img/repl_pipe.png[usage of the /pipe command, width=70%]
 
+There is another less commonly used builtin pipe operator, `|;`, which is used 
to flip arguments:
+
+[source,jshell]
+----
+groovy> 4 |; 8 -
+4
+groovy> 4 |; 8 *
+32
+groovy> 4 |; 8 /
+2
+groovy> 4 |; 8 +
+12
+groovy> 4 |; 8 %
+0
+groovy> 4 |; 8 **
+4096
+----
+
 [[GroovyShell-prnt]]
 ==== `/prnt`
 

Reply via email to