cqframework / cql-execution

A JavaScript framework for executing CQL
Apache License 2.0
63 stars 31 forks source link

Support ProperContains/ProperIn for Lists #291

Open cmoesel opened 1 year ago

cmoesel commented 1 year ago

The ProperContains / ProperIn operators are similar to ProperIncludes and ProperIncludedIn. The primary difference is that the former two support relationships between a list and a point, while the latter two support relationships between two lists.

Note that despite their names, these operates are invoked in CQL using the same syntax is ProperIncludes/ProperIncludedIn. E.g.

define ListProperlyContainsPoint: {1, 2, 3, 4, 5} properly includes 3
define PointProperlyInList: 3 properly included in {1, 2, 3, 4, 5}