MCPcopy Create free account
hub / github.com/effect-app/libs / Array_

Function Array_

repos/effect/packages/effect/src/Order.ts:531–544  ·  view source on GitHub ↗

* @since 4.0.0

(O: Order<A>)

Source from the content-addressed store, hash-verified

529 * @since 4.0.0
530 */
531function Array_<A>(O: Order<A>): Order<ReadonlyArray<A>> {
532 return make((self, that) => {
533 const aLen = self.length
534 const bLen = that.length
535 const len = Math.min(aLen, bLen)
536 for (let i = 0; i < len; i++) {
537 const o = O(self[i], that[i])
538 if (o !== 0) {
539 return o
540 }
541 }
542 return Number(aLen, bLen)
543 })
544}
545
546export {
547 /**

Callers

nothing calls this directly

Calls 3

OInterface · 0.85
makeFunction · 0.70
NumberInterface · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…