// ets_tracing: off import type { Either } from "@effect-ts/system/Either" import * as E from "@effect-ts/system/Either" import type { Equal } from "../../Equal/index.js" export function getEqual(EL: Equal, EA: Equal): Equal> { return { equals: (x, y) => x === y || (E.isLeft(x) ? E.isLeft(y) && EL.equals(x.left, y.left) : E.isRight(y) && EA.equals(x.right, y.right)) } }