Skip to content

Improve loops-step docs with output and clearer semantics#3568

Merged
spmallette merged 1 commit into
apache:masterfrom
spmallette:tp-docs-loops-step
Jul 25, 2026
Merged

Improve loops-step docs with output and clearer semantics#3568
spmallette merged 1 commit into
apache:masterfrom
spmallette:tp-docs-loops-step

Conversation

@spmallette

Copy link
Copy Markdown
Contributor

Expand the Loops Step section of the traversal reference so the example is self-explanatory. Clarify that loops() returns 0 before the first iteration and counts completed (0-based) iterations, explain that an emit() placed before repeat() is evaluated on every pass including the zeroth, note that the no-argument or() acts as an infix disjunction (cross-referencing the Or Step), and describe how the repeat() terminates when no times()/until() is given.

Expand the Loops Step section of the traversal reference so the example
is self-explanatory. Clarify that loops() returns 0 before the first
iteration and counts completed (0-based) iterations, explain that an
emit() placed before repeat() is evaluated on every pass including the
zeroth, note that the no-argument or() acts as an infix disjunction
(cross-referencing the Or Step), and describe how the repeat()
terminates when no times()/until() is given.

Assisted-by: Kiro:claude-opus-4.8
@spmallette
spmallette merged commit 1352e95 into apache:master Jul 25, 2026
@spmallette
spmallette deleted the tp-docs-loops-step branch July 25, 2026 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant