MCPcopy Index your code
hub / github.com/Effect-TS/effect / loopArray

Function loopArray

packages/effect/src/internal/configProvider.ts:776–783  ·  view source on GitHub ↗
(
    path: ReadonlyArray<KeyComponent>,
    values: JsonArray
  )

Source from the content-addressed store, hash-verified

774 return Arr.empty<[ReadonlyArray<KeyComponent>, string]>()
775 }
776 const loopArray = (
777 path: ReadonlyArray<KeyComponent>,
778 values: JsonArray
779 ): ReadonlyArray<[path: ReadonlyArray<KeyComponent>, value: string]> =>
780 Arr.match(values, {
781 onEmpty: () => Arr.make([path, "<nil>"] as [ReadonlyArray<KeyComponent>, string]),
782 onNonEmpty: Arr.flatMap((value, index) => loopAny(Arr.append(path, keyIndex(index)), value))
783 })
784 const loopObject = (
785 path: ReadonlyArray<KeyComponent>,
786 value: JsonMap

Callers 1

loopAnyFunction · 0.85

Calls 3

loopAnyFunction · 0.85
keyIndexFunction · 0.85
makeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…