spmallette opened a new pull request, #3626:
URL: https://github.com/apache/tinkerpop/pull/3626
The Until Step section of the reference documentation was a two-sentence
stub that deferred entirely to `repeat()`, with no example and no mention of
what `until()` actually controls.
This expands it to mirror the existing Times Step section in shape and tone.
`until()` is a step modulator for `repeat()`, so the section stays lean and
defers the general loop semantics to the `repeat()`-step section rather than
duplicating them:
- A short intro paragraph describing `until()` as a step modulator for
`repeat()` that specifies the break condition controlling how long the
`repeat()` body loops, with no effect on its own.
- A one-sentence note on the two overloads: `until(Predicate)` tests the
traverser directly, while `until(Traversal)` tests whether its child traversal
produces a result.
- One runnable example, `g.V(1).repeat(out()).until(has('name','ripple'))`.
- A sentence noting that placing `until()` before or after `repeat()`
determines while-do versus do-while semantics, deferring to the `repeat()`-step
section for the positioning details.
The existing Additional References links are preserved unchanged. Only the
until-step section is touched.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]