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

Function meet

ark/type/deferred.ts:288–292  ·  view source on GitHub ↗
({ ends: l }: Facts, { ends: r }: Facts)

Source from the content-addressed store, hash-verified

286// whether a range of one ends where a range of the other starts, wherever each
287// holds it
288const meet = ({ ends: l }: Facts, { ends: r }: Facts) =>
289 !!l &&
290 !!r &&
291 (l.highs.some(n => r.lows.includes(n)) ||
292 l.lows.some(n => r.highs.includes(n)))
293
294/** what an inclusive range is, which any way of writing it is one Type */
295const rangeFacts = (

Callers 2

callsFunction · 0.70
deferUnionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected