Skip to content
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

Conversation

michaelhkay
Copy link
Contributor

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.

@michaelhkay michaelhkay added XQFO An issue related to Functions and Operators Tests Needed Tests need to be written or merged Reversion PR reverts spec to an earlier status quo labels Mar 12, 2025
@michaelhkay michaelhkay force-pushed the 1341-drop-position-callback-from-fold-functions branch from ed49cc8 to 9ed13d6 Compare March 12, 2025 23:05
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>
Copy link
Contributor

@ChristianGruen ChristianGruen Mar 14, 2025

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, noted.

@michaelhkay michaelhkay added Tests Added Tests have been added to the test suites 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 and removed Tests Needed Tests need to be written or merged Completed PR has been applied, tests written and tagged, no further action needed labels Mar 15, 2025
@ndw
Copy link
Contributor

ndw commented Mar 18, 2025

The CG agreed to merge this PR at meeting 114

@ndw ndw merged commit 06d1905 into qt4cg:master Mar 18, 2025
3 checks passed
@michaelhkay michaelhkay added the Completed PR has been applied, tests written and tagged, no further action needed label Mar 18, 2025
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants