MCPcopy Index your code
hub / github.com/Effect-TS/effect / differenceWith

Function differenceWith

packages/effect/src/Chunk.ts:1473–1481  ·  view source on GitHub ↗
(isEquivalent: (self: A, that: A) => boolean)

Source from the content-addressed store, hash-verified

1471 * @since 3.2.0
1472 */
1473export const differenceWith = <A>(isEquivalent: (self: A, that: A) => boolean): {
1474 (that: Chunk<A>): (self: Chunk<A>) => Chunk<A>
1475 (self: Chunk<A>, that: Chunk<A>): Chunk<A>
1476} => {
1477 return dual(
1478 2,
1479 (self: Chunk<A>, that: Chunk<A>): Chunk<A> => unsafeFromArray(RA.differenceWith(isEquivalent)(that, self))
1480 )
1481}
1482
1483/**
1484 * Creates a `Chunk` of values not included in the other given `Chunk`.

Callers

nothing calls this directly

Calls 1

unsafeFromArrayFunction · 0.85

Tested by

no test coverage detected