def sep
import cswap-bend-cli@0.1.0.0/fmt/yamlw.bend as Yamlwimport Base
import cswap-bend-cli@0.1.0.0/json.bend as Json
63# A new line for the next field or item, none at the end of the chain.
64def sep(t: Json.Json, +d: Nat, rest: String) -> String:
65 match t:
66 case Json.JNil{}:
67 ""
68 case _:
69 "\n" ++ pad(d) ++ rest