effect-io-ai

Package: @effect/printer
Module: Doc

Doc.group

The group combinator attempts to lay out a document onto a single line by removing the contained line breaks. If the result does not fit the page, or if a hardLine prevents flattening the document, x is laid out without any changes.

The group function is key to layouts that adapt to available space nicely.

Signature

declare const group: <A>(self: Doc<A>) => Doc<A>

Source

Since v1.0.0