(ref: TxRef.TxRef<Chunk<A>>, ord: Order<A>)
| 77 | } |
| 78 | |
| 79 | const makeTxPriorityQueue = <A>(ref: TxRef.TxRef<Chunk<A>>, ord: Order<A>): TxPriorityQueue<A> => { |
| 80 | const self = Object.create(TxPriorityQueueProto) |
| 81 | self[TypeId] = TypeId |
| 82 | self.ref = ref |
| 83 | self.ord = ord |
| 84 | return self |
| 85 | } |
| 86 | |
| 87 | const insertSorted = <A>(chunk: Chunk<A>, value: A, ord: Order<A>): Chunk<A> => { |
| 88 | const arr = C.toArray(chunk) as Array<A> |
no outgoing calls
no test coverage detected