// ets_tracing: off import * as O from "@effect-ts/system/Option" import type { Associative } from "../../Associative/index.js" import { makeIdentity } from "../../Identity/index.js" export function getIdentity(A: Associative) { return makeIdentity>(O.none, (x, y) => O.isNone(x) ? y : O.isNone(y) ? x : O.some(A.combine(x.value, y.value)) ) }