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

Function join

packages/effect/src/internal/codegen.ts:28–35  ·  view source on GitHub ↗
(values: ReadonlyArray<CodeHole>, separator: string)

Source from the content-addressed store, hash-verified

26
27/** @internal */
28export function join(values: ReadonlyArray<CodeHole>, separator: string): Fragment {
29 const parts: Array<Fragment> = []
30 for (let i = 0; i < values.length; i++) {
31 if (i > 0) parts.push(separator)
32 append(values[i], parts)
33 }
34 return { _tag: "Parts", parts, toString: cannotCoerce }
35}
36
37/** @internal */
38export function deferred(render: (render: Render) => string): Fragment {

Callers

nothing calls this directly

Calls 2

appendFunction · 0.70
pushMethod · 0.65

Tested by

no test coverage detected