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

Function joinEnds

ark/type/deferred.ts:249–258  ·  view source on GitHub ↗
(
	l: Ends | undefined,
	r: Ends | undefined
)

Source from the content-addressed store, hash-verified

247
248// each once, however many of what it holds end there
249const joinEnds = (
250 l: Ends | undefined,
251 r: Ends | undefined
252): Ends | undefined =>
253 l && r ?
254 {
255 lows: [...new Set([...l.lows, ...r.lows])],
256 highs: [...new Set([...l.highs, ...r.highs])]
257 }
258 : (l ?? r)
259
260const holding = (...held: Facts[]): Holding => {
261 let bits = 0

Callers 6

holdingFunction · 0.85
scanUnionFunction · 0.85
nodeHoldsFunction · 0.85
walkLiteralFunction · 0.85
deferUnionFunction · 0.85
deferred.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected