def render.late
import emerging-eztoml@0.9.0.0/main.bend as EmergingEztomlimport Base
5912# a key, an array, or an inline table. The text is built only by the pass that writes keys
5913def render.late(
5914 tabs: Bool,
5915 text: Unit -> String,
5916 tail: List<&2, Val>,
5917 gap: String,
5918 trail: Bool,
5919 rest: Unit -> String
5920) -> String:
5921 match tabs:
5922 case True{}:
5923 rest(Unit{})
5924 case False{}:
5925 text(Unit{}) ++ render.suf(gap, trail, List.is_empty(&2, Val, tail)) ++ rest(Unit{})