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

Function minHeapLessThan

packages/effect/src/Graph.ts:4003–4004  ·  view source on GitHub ↗
(self: MinHeapEntry, that: MinHeapEntry)

Source from the content-addressed store, hash-verified

4001}
4002
4003const minHeapLessThan = (self: MinHeapEntry, that: MinHeapEntry): boolean =>
4004 self.priority < that.priority || (self.priority === that.priority && self.sequence < that.sequence)
4005
4006const minHeapPush = (heap: Array<MinHeapEntry>, entry: MinHeapEntry): void => {
4007 let index = heap.length

Callers 2

minHeapPushFunction · 0.85
minHeapPopFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected