(isEquivalent: (self: A, that: A) => boolean)
| 1852 | * @since 2.0.0 |
| 1853 | */ |
| 1854 | export const containsWith = <A>(isEquivalent: (self: A, that: A) => boolean): { |
| 1855 | (a: A): (self: Option<A>) => boolean |
| 1856 | (self: Option<A>, a: A): boolean |
| 1857 | } => dual(2, (self: Option<A>, a: A): boolean => isNone(self) ? false : isEquivalent(self.value, a)) |
| 1858 | |
| 1859 | const _equivalence = Equal.equivalence() |
| 1860 |