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

For symmetry, add functions array:scan-left and array:scan-right #1307

Open
michaelhkay opened this issue Jun 27, 2024 · 1 comment
Open
Labels
Enhancement A change or improvement to an existing feature XQFO An issue related to Functions and Operators

Comments

@michaelhkay
Copy link
Contributor

The fold-left and fold-right functions are defined both for sequences and arrays; symmetry demands that the same should apply to scan-left and scan-right.

@ChristianGruen ChristianGruen added XQFO An issue related to Functions and Operators Enhancement A change or improvement to an existing feature labels Jul 4, 2024
@ChristianGruen
Copy link
Contributor

Yes, we should do so. My favorite solution would be to offer the array functions for structured operations and the sequence functions for sequence operations, similar to what does array:for-each and fn:for-each (when you use the sequence functions, you can always create structured results if you need to).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement A change or improvement to an existing feature XQFO An issue related to Functions and Operators
Projects
None yet
Development

No branches or pull requests

2 participants