effect-io-ai

Package: effect
Module: Iterable

Iterable.containsWith

Returns a function that checks if an Iterable contains a given value using a provided isEquivalent function.

Signature

declare const containsWith: <A>(isEquivalent: (self: A, that: A) => boolean) => { (a: A): (self: Iterable<A>) => boolean; (self: Iterable<A>, a: A): boolean; }

Source

Since v2.0.0