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

Function intersectionIterator

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

Source from the content-addressed store, hash-verified

1533 // of different moduli, or a class and an integer, are not compared: no
1534 // answer rather than a wrong one.
1535 eq: (a, b) => {
1536 const x = residueOf(a);
1537 const y = residueOf(b);
1538 if (x === undefined || y === undefined || x.n !== y.n) return undefined;
1539 return x.k === y.k;
1540 },
1541 },
1542
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',

Callers

nothing calls this directly

Calls 4

isFunctionFunction · 0.90
eachMethod · 0.65
sliceMethod · 0.65
containsMethod · 0.65

Tested by

no test coverage detected