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

Function formatPath

packages/effect/src/ai/DecisionModel.ts:334–336  ·  view source on GitHub ↗
(path: ReadonlyArray<string | number>)

Source from the content-addressed store, hash-verified

332}
333
334const formatPath = (path: ReadonlyArray<string | number>): string =>
335 path.map((segment, index) => typeof segment === "number" ? `[${segment}]` : index === 0 ? segment : `.${segment}`)
336 .join("")
337
338const randomUuid = (random: Random.Random): string => {
339 const bytes = new Uint8Array(16)

Callers 2

errorWithPathFunction · 0.90
walkFunction · 0.70

Calls 2

joinMethod · 0.45
mapMethod · 0.45

Tested by

no test coverage detected