MCPcopy Create free account
hub / github.com/arktypeio/arktype / isWithin

Function isWithin

ark/schema/node.ts:1833–1838  ·  view source on GitHub ↗
(l: BaseRoot, r: BaseRoot, s: SimulationState)

Source from the content-addressed store, hash-verified

1831}
1832
1833const isWithin = (l: BaseRoot, r: BaseRoot, s: SimulationState): boolean =>
1834 l.branches.every(
1835 lBranch =>
1836 r.branches.some(rBranch => isSimulated(lBranch, rBranch, s)) ||
1837 r.branches.some(rBranch => isSubsumed(lBranch, rBranch, s))
1838 )
1839
1840export const isMutuallySimulated = (
1841 l: BaseNode,

Callers 1

_isMutuallySimulatedFunction · 0.70

Calls 2

isSimulatedFunction · 0.85
isSubsumedFunction · 0.85

Tested by

no test coverage detected