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

Function align

packages/printer/src/internal/doc.ts:459–460  ·  view source on GitHub ↗
(self: Doc.Doc<A>)

Source from the content-addressed store, hash-verified

457
458/** @internal */
459export const align = <A>(self: Doc.Doc<A>): Doc.Doc<A> =>
460 column((position) => nesting((level) => nest(self, position - level)))
461
462/** @internal */
463export const hang = dual<

Callers 1

doc.tsFile · 0.85

Calls 2

columnFunction · 0.85
nestingFunction · 0.85

Tested by

no test coverage detected