MCPcopy Create free account
hub / github.com/Effect-TS/effect / differenceWith

Function differenceWith

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

Source from the content-addressed store, hash-verified

2820 * @since 3.2.0
2821 */
2822export const differenceWith = <A>(isEquivalent: (self: A, that: A) => boolean): {
2823 (that: Chunk<A>): (self: Chunk<A>) => Chunk<A>
2824 (self: Chunk<A>, that: Chunk<A>): Chunk<A>
2825} => {
2826 return dual(
2827 2,
2828 (self: Chunk<A>, that: Chunk<A>): Chunk<A> => fromArrayUnsafe(RA.differenceWith(isEquivalent)(self, that))
2829 )
2830}
2831
2832/**
2833 * Creates a `Chunk` of values not included in the other given `Chunk`.

Callers

nothing calls this directly

Calls 1

fromArrayUnsafeFunction · 0.85

Tested by

no test coverage detected