def content
import bend-lint-rules@0.2.0.0/layout/format.bend as Formatimport Base
1717# The parts' docs with their separators, last first.
1718def content(parts: List<&2, Part>) -> List<&2, Doc>:
1719 match parts:
1720 case Nil{}:
1721 []
1722 case Con{Part{d, newlines, comment}, rest}:
1723 content.go(rest, comment, [d])