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

Function nesting

packages/printer/src/internal/doc.ts:420–425  ·  view source on GitHub ↗
(react: (level: number) => Doc.Doc<A>)

Source from the content-addressed store, hash-verified

418
419/** @internal */
420export const nesting = <A>(react: (level: number) => Doc.Doc<A>): Doc.Doc<A> => {
421 const op = Object.create(proto)
422 op._tag = "Nesting"
423 op.react = react
424 return op
425}
426
427/** @internal */
428export const width = dual<

Callers 4

alignFunction · 0.85
flattenSafeFunction · 0.85
alterAnnotationsSafeFunction · 0.85

Calls 1

createMethod · 0.80

Tested by

no test coverage detected