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

Function differenceWith

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

Source from the content-addressed store, hash-verified

2953 * @since 3.2.0
2954 */
2955export const differenceWith = <A>(isEquivalent: (self: A, that: A) => boolean): {
2956 (that: Chunk<A>): (self: Chunk<A>) => Chunk<A>
2957 (self: Chunk<A>, that: Chunk<A>): Chunk<A>
2958} => {
2959 return dual(
2960 2,
2961 (self: Chunk<A>, that: Chunk<A>): Chunk<A> => fromArrayUnsafe(RA.differenceWith(isEquivalent)(self, that))
2962 )
2963}
2964
2965/**
2966 * 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