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

Function composeKind

packages/effect/src/Optic.ts:1268–1272  ·  view source on GitHub ↗
(a: Kind, b: Kind)

Source from the content-addressed store, hash-verified

1266}
1267
1268function composeKind(a: Kind, b: Kind): Kind {
1269 if (a === "Iso") return b
1270 if (b === "Iso" || a === b) return a
1271 return "Optional"
1272}
1273// ---------------------------------------------
1274// Derived APIs
1275// ---------------------------------------------

Callers 1

makeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected