Skip to content

docs: explain for val in &arr syntax#25552

Merged
spytheman merged 1 commit into
vlang:masterfrom
StunxFS:docs/explain-for-in-ref
Oct 21, 2025
Merged

docs: explain for val in &arr syntax#25552
spytheman merged 1 commit into
vlang:masterfrom
StunxFS:docs/explain-for-in-ref

Conversation

@StunxFS

@StunxFS StunxFS commented Oct 21, 2025

Copy link
Copy Markdown
Contributor

While developing a PR, I realized that V supports referencing array or map elements during for in iterations. I checked the documentation to see if this syntax was documented, but it wasn't. This PR documents it.

@spytheman spytheman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @StunxFS 🙇🏻.

@spytheman spytheman merged commit 65c8333 into vlang:master Oct 21, 2025
3 checks passed
@StunxFS StunxFS deleted the docs/explain-for-in-ref branch October 21, 2025 16:54
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.

2 participants