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

Issue 314 array composition and decomposition #360

Closed

Conversation

michaelhkay
Copy link
Contributor

This PR addresses parts of issue 29, issue 113, and issue 314 relating to the composition and decomposition of arrays.

It introduces two functions array:of for array composition, and array:members for decomposition, and defines all other array functions in terms of these two primitives (replacing the internal functions op:A2S and op:S2A). The items in the decomposed form of an array are called "value records", singleton maps of the form map{'value': $value}

The function array:from-sequence is renamed array:build to reflect its symmetry with map:build.

Question for the group: should we have a new function for constructing a "value record", or is the syntax map{'value': $value} adequate for the purpose?

@ndw
Copy link
Contributor

ndw commented Mar 21, 2023

Accepted at meeting 027

Close #314

ndw added a commit to ndw/qtspecs-xslt4 that referenced this pull request Mar 21, 2023
@ndw ndw closed this in #405 Mar 21, 2023
ndw added a commit that referenced this pull request Mar 21, 2023
MK PR #360 with merge conflicts resolved (array compositionand decomposition)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants