def content

bend-lint-rules@0.2.0.0 · layout/format.bend:1717

import bend-lint-rules@0.2.0.0/layout/format.bend as Format
import 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])

Uses (4)

Used by (1)