feat(value): add foreach APIs for lists and objects - #2032
Open
jpnurmi wants to merge 1 commit into
Open
Conversation
Add callbacks for visiting the values of a list and the key/value pairs of an object. Callbacks may modify the container. Those changes are applied, but the current iteration continues over the entries present when it began. A non-zero callback return stops iteration, and the same value is returned to the caller. Close: #2017
jpnurmi
force-pushed
the
jpnurmi/feat/value-foreach
branch
from
August 28, 2026 10:14
82777a3 to
b8eff51
Compare
|
Collaborator
Author
|
@limbonaut Would this kind of |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #2032 +/- ##
==========================================
+ Coverage 74.21% 74.33% +0.11%
==========================================
Files 104 104
Lines 26627 26653 +26
Branches 4844 4848 +4
==========================================
+ Hits 19762 19813 +51
+ Misses 5519 5489 -30
- Partials 1346 1351 +5 🚀 New features to boost your workflow:
|
limbonaut
approved these changes
Aug 28, 2026
limbonaut
left a comment
Collaborator
There was a problem hiding this comment.
Nice! Visitor will totally work for what we need in Godot.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add interruptible callbacks for visiting the values of a list and the key/value pairs of an object. A non-zero callback return stops iteration, and the same value is returned to the caller.
Note: callbacks may modify the container freely. Those changes are applied, but the current iteration continues over the entries present when it began.
Close: #2017