MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / symmetricDifferenceIterator

Function symmetricDifferenceIterator

src/compute-engine/library/sets.ts:1545–1560  ·  view source on GitHub ↗
(
  expr: Expression
)

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 3

isFunctionFunction · 0.90
eachMethod · 0.65
containsMethod · 0.65

Tested by

no test coverage detected