-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1341 Drop position from fold callbacks #1867
Merged
ndw
merged 4 commits into
qt4cg:master
from
michaelhkay:1341-drop-position-callback-from-fold-functions
Mar 18, 2025
Merged
1341 Drop position from fold callbacks #1867
ndw
merged 4 commits into
qt4cg:master
from
michaelhkay:1341-drop-position-callback-from-fold-functions
Mar 18, 2025
Conversation
This file contains 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
ed49cc8
to
9ed13d6
Compare
first forming the sequence <code>$input ! {'position': position(), 'item': .}</code> | ||
and then applying the <function>fn:fold-left</function> function to this sequence. | ||
(This idiom is frequently used within this specification in defining the formal equivalents | ||
of other functions such as <function>fn:filter</function>.)</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not anymore, I assume, thanks to using fn:for-each
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, noted.
ChristianGruen
approved these changes
Mar 14, 2025
The CG agreed to merge this PR at meeting 114 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Completed
PR has been applied, tests written and tagged, no further action needed
In Saxon 13
The feature is implemented in the Saxon 13 development branch
Reversion
PR reverts spec to an earlier status quo
Tests Added
Tests have been added to the test suites
XQFO
An issue related to Functions and Operators
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.
Following up on issue 1341, we decided to drop the position argument from the 4 fold functions.
Most of the changes in this PR are dealing with the collateral damage - changes to "formal equivalents" of other functions that previously relied on fold-left having the position available to the callback function.