This is an automated email from the ASF dual-hosted git repository.
Cole-Greer pushed a commit to branch 3.7-dev
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git
The following commit(s) were added to refs/heads/3.7-dev by this push:
new 31815df8a3 CTR Docs fixes:
31815df8a3 is described below
commit 31815df8a319a38b382d66b99f587bc3f7d8428a
Author: Cole Greer <[email protected]>
AuthorDate: Fri Jul 24 15:27:35 2026 -0700
CTR Docs fixes:
- Cleanup tail(local) reference docs
---
docs/src/reference/the-traversal.asciidoc | 15 +++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)
diff --git a/docs/src/reference/the-traversal.asciidoc
b/docs/src/reference/the-traversal.asciidoc
index 01afa7cf3e..49f49a36a5 100644
--- a/docs/src/reference/the-traversal.asciidoc
+++ b/docs/src/reference/the-traversal.asciidoc
@@ -4836,16 +4836,15 @@ The `tail()`-step can also be applied with
`Scope.local`, in which case it opera
[gremlin-groovy,modern]
----
-g.V().as('a').out().as('a').out().as('a').select('a').by(tail(local)).values('name')
<1>
-g.V().as('a').out().as('a').out().as('a').select('a').by(unfold().values('name').fold()).tail(local)
<2>
-g.V().as('a').out().as('a').out().as('a').select('a').by(unfold().values('name').fold()).tail(local,
2) <3>
-g.V().elementMap().tail(local) <4>
+g.V().values('name').order().fold()
+g.V().values('name').order().fold().tail(local) <1>
+g.V().values('name').order().fold().tail(local, 3) <2>
+g.V().elementMap().tail(local) <3>
----
-<1> Only the most recent name from the "a" step (`List<Vertex>` becomes
`Vertex`).
-<2> Same result as statement 1 (`List<String>` becomes `String`).
-<3> `List<String>` for each path containing the last two names from the 'a'
step.
-<4> `Map<String, Object>` for each vertex, but containing only the last
property value.
+<1> The `List<String>` of names is reduced to just the last name
(alphabetically).
+<2> The `List<String>` of names is reduced to the last three names.
+<3> A `Map<String,Object>` for each vertex, but containing only its last
property value.
*Additional References*