def joins
import bend-lint-rules@0.2.0.0/layout/format.bend as Formatimport Base
2055# Whether a newline between previous and rest continues the record.
2056def joins(previous: Maybe<&2, Tree>, rest: List<&2, Tree>) -> Bool:
2057 match previous rest:
2058 case Some{p} Con{next, more}:
2059 joins.of(p, next, head(more))
2060 case _ _:
2061 False{}