MCPcopy
hub / github.com/Effect-TS/effect / sortByIndex

Function sortByIndex

packages/effect/src/ParseResult.ts:1661–1663  ·  view source on GitHub ↗
(es: Array<[number, any]>)

Source from the content-addressed store, hash-verified

1659): Arr.NonEmptyArray<T>
1660function sortByIndex<T>(es: Array<[number, T]>): Array<T>
1661function sortByIndex(es: Array<[number, any]>) {
1662 return es.sort(compare).map((t) => t[1])
1663}
1664
1665// -------------------------------------------------------------------------------------
1666// transformations interpreter

Callers 2

goFunction · 0.85
computeResultFunction · 0.85

Calls 1

mapMethod · 0.65

Tested by

no test coverage detected