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

Function prettyDo

packages/printer/test/doc.test.ts:36–40  ·  view source on GitHub ↗
(docs: Iterable<Doc.Doc<A>>)

Source from the content-addressed store, hash-verified

34 const separator = Doc.flatAlt(Doc.empty, Doc.text("; "))
35
36 const prettyDo = <A>(docs: Iterable<Doc.Doc<A>>): Doc.Doc<A> =>
37 Doc.group(Doc.hsep([
38 Doc.text("do"),
39 Doc.align(Doc.encloseSep(docs, open, close, separator))
40 ]))
41
42 const statements = [
43 Doc.text("name:_ <- getArgs"),

Callers 1

doc.test.tsFile · 0.85

Calls 2

groupMethod · 0.65
textMethod · 0.45

Tested by

no test coverage detected