project-lux / lux-marklogic

Code, issues, and resources related to LUX MarkLogic
Other
3 stars 2 forks source link

Provide convenience script to compare arrays #85

Closed brent-hartwig closed 3 months ago

brent-hartwig commented 3 months ago

Multiple times I have needed to compare a couple arrays. utils.getArrayDiff and utils.getArrayOverlap help but the former requires one to reverse the parameters and call it a second time before learning which items are in array 1 but not array 2 and which items are in array 2 but not array 1. I since wrote a variation that does this, but isn't necessarily what we want for the runtime application. Thus, adding it as a convenience script.

brent-hartwig commented 3 months ago

Scripted added in PR https://github.com/project-lux/lux-marklogic/pull/86 and immediately merged into the release1.13 branch.