Paiges
object Paiges
Extensions
Extensions
extension (doc: Doc)
extension (docs: Iterable[Doc])
Collapse a collection of documents into one document,
delimited by a separator. Simply calls the Doc.fill
method.
Collapse a collection of documents into one document,
delimited by a separator. Simply calls the Doc.fill
method.
For example:
import Doc.{ comma, line, text, fill } val ds = text("1") :: text("2") :: text("3") :: Nil val doc = ds.fill(comma + line)
doc.render(0) // produces "1,\n2,\n3" doc.render(6) // produces "1, 2,\n3" doc.render(10) // produces "1, 2, 3"
extension (obj: Matchable)