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

Add support to create ValueArrays with the global value function #36

Closed
skwlilac opened this issue Oct 9, 2020 · 1 comment
Closed
Assignees

Comments

@skwlilac
Copy link
Contributor

skwlilac commented Oct 9, 2020

Within JEXL it is useful possible to create both collections (HashMaps and HashSets) and array which are useful when micro-parsing table cell values that contain some form of repetitive structure. It is desirable to pass back an array of the resulting values as a ValueArray to a template as a means passing a multi-valued result.

  var res = { 'one':'one' }                     // Create a Map
  res.clear() ;                                       // Empty the Map
  ....                                                     // Work to fill the map - assume that map keys are ValueNodes representing RDF nodes.
  return value(res.keySet()) 

PR proposing a fix to follow.

@skwlilac skwlilac self-assigned this Oct 9, 2020
skwlilac added a commit that referenced this issue Oct 9, 2020
Added:    Object value(Collection<Object> values) global method to
address issue #36
skwlilac added a commit that referenced this issue Oct 15, 2020
Added basic unit test of ValueArray creation from arrays and
collections. issue #36
@skwlilac
Copy link
Contributor Author

Addressed by 1e6cfa2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant