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

Function tupled

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

Source from the content-addressed store, hash-verified

520
521/** @internal */
522export const tupled = <A>(docs: Iterable<Doc.Doc<A>>): Doc.Doc<A> =>
523 group(
524 encloseSep(
525 docs,
526 flatAlt(text("( "), lparen),
527 flatAlt(text(" )"), rparen),
528 text(", ")
529 )
530 )
531
532// -----------------------------------------------------------------------------
533// Filling

Callers

nothing calls this directly

Calls 2

groupFunction · 0.70
textFunction · 0.70

Tested by

no test coverage detected