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

Function sortByIndex

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

Source from the content-addressed store, hash-verified

1677): Arr.NonEmptyArray<T>
1678function sortByIndex<T>(es: Array<[number, T]>): Array<T>
1679function sortByIndex(es: Array<[number, any]>) {
1680 return es.sort(compare).map((t) => t[1])
1681}
1682
1683// -------------------------------------------------------------------------------------
1684// transformations interpreter

Callers 2

goFunction · 0.85
computeResultFunction · 0.85

Calls 1

mapMethod · 0.65

Tested by

no test coverage detected