( expr: Expression )
| 1543 | Complement: { |
| 1544 | examples: ['ListFrom(Complement(Set(1, 2, 3, 4), Set(2, 4)))'], |
| 1545 | // Return the elements of the first argument that are not in any of |
| 1546 | // the subsequent sets |
| 1547 | wikidata: 'Q242767', |
| 1548 | signature: '(set<any>+) -> set', |
| 1549 | parameters: [ |
| 1550 | { |
| 1551 | description: |
| 1552 | 'The sets: the first one, then the sets whose elements are removed from it.', |
| 1553 | sample: 'Set(1, 2, 3, 4)', |
| 1554 | }, |
| 1555 | ], |
| 1556 | type: (ops, context) => setOperationResultType(ops, 'first', context), |
| 1557 | description: |
| 1558 | 'Return the elements of the first set that are not in any of the subsequent sets.', |
| 1559 | collection: { |
| 1560 | isEnumerable: (expr) => differenceIsEnumerable(expr, memberOf), |
| 1561 | // Three-valued: `x ∈ col ∧ x ∉ s1 ∧ x ∉ s2 ∧ …` with Kleene |
| 1562 | // combination — indeterminate member tests yield `undefined`, not a |
| 1563 | // spurious definitive answer. |
nothing calls this directly
no test coverage detected