def records.step
import bend-lint-rules@0.2.0.0/layout/format.bend as Formatimport Base
2070def records.step(
2071 newline: Bool,
2072 n: Tree,
2073 rest: List<&2, Tree>,
2074 done: List<&2, List<&2, Tree>>,
2075 +current: List<&2, Tree>
2076) -> Recs:
2077 match newline:
2078 case False{}:
2079 Recs{done, Con{n, current}}
2080 case True{}:
2081 records.newline(joins(head(current), rest), done, current)