Skip to content

Issue 314 array composition and decomposition - #360

Closed
michaelhkay wants to merge 2 commits into
qt4cg:masterfrom
michaelhkay:Issue-314-array-composition
Closed

Issue 314 array composition and decomposition#360
michaelhkay wants to merge 2 commits into
qt4cg:masterfrom
michaelhkay:Issue-314-array-composition

Conversation

@michaelhkay

Copy link
Copy Markdown
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

ndw commented Mar 21, 2023

Copy link
Copy Markdown
Contributor

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