Clarify that sum(local) also accepts a scalar Number - #3612
Merged
spmallette merged 1 commit intoAug 5, 2026
Conversation
The sum()-step reference previously stated that sum(local) works for Collection-type objects, which implied it only accepts Collections. In fact sum(local) also accepts a scalar Number and returns that number itself as an identity operation. Update the wording so readers know both cases are supported. Assisted-by: Kiro:claude-opus-4.8
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3612 +/- ##
============================================
+ Coverage 76.35% 76.50% +0.14%
- Complexity 13424 14299 +875
============================================
Files 1012 1036 +24
Lines 60341 64620 +4279
Branches 7075 7664 +589
============================================
+ Hits 46076 49440 +3364
- Misses 11548 12087 +539
- Partials 2717 3093 +376 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
The
sum()-step reference section states thatsum(local)"works forCollection-type objects," which reads as though a Collection is the only accepted input.In practice,
sum(local)also accepts a scalarNumberand returns that number itself as an identity operation, in addition to summing the numeric elements of a Collection. This change updates the one sentence so both cases are documented:The documentation was incomplete rather than incorrect, so this is a small wording fix scoped to the
sum()-step section. Verified by rendering the reference docs locally.