def Seq.level
import bend-lint-rules@0.2.0.0/layout/format.bend as Formatimport Base
1517# A run of newlines breaks the line at the next tree's level.
1518def Seq.level(
1519 +levels: List<&2, U32>,
1520 tab: U32,
1521 out: List<&2, Doc>,
1522 chain: Maybe<&2, List<&2, Doc>>
1523) -> Seq:
1524 Seq.put(Seq{out, chain, None{}, levels, True{}}, hard((depth(levels) * tab: U32)))