Emit.lead: def of yaml-for-bend@0.1.1.0 Import: import yaml-for-bend@0.1.1.0/emit.bend as Emit Lines 135-146 of yaml-for-bend@0.1.1.0/emit.bend: https://jend.leeeet.dev/read.txt?path=yaml-for-bend@0.1.1.0/emit.bend&start_line=135&end_line=146 import Base # What goes before a node's first line: indentation at a line's start, a # break and indentation after a key, nothing after "- ". def lead(p: Pos, +ind: Nat) -> String: match p: case Line{}: spaces(ind) case Dash{}: "" case Colon{}: "\n" ++ spaces(ind) case More{}: spaces(ind) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.append https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/emit.bend&name=Pos https://jend.leeeet.dev/definition.txt?path=yaml-for-bend@0.1.1.0/emit.bend&name=spaces