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

Function list

packages/printer/src/internal/doc.ts:511–519  ·  view source on GitHub ↗
(docs: Iterable<Doc.Doc<A>>)

Source from the content-addressed store, hash-verified

509
510/** @internal */
511export const list = <A>(docs: Iterable<Doc.Doc<A>>): Doc.Doc<A> =>
512 group(
513 encloseSep(
514 docs,
515 flatAlt(text("[ "), lbracket),
516 flatAlt(text(" ]"), rbracket),
517 text(", ")
518 )
519 )
520
521/** @internal */
522export const tupled = <A>(docs: Iterable<Doc.Doc<A>>): Doc.Doc<A> =>

Callers

nothing calls this directly

Calls 2

groupFunction · 0.70
textFunction · 0.70

Tested by

no test coverage detected