Json.ws.go: def of bend-net-json@0.3.0.0 Import: import bend-net-json@0.3.0.0/json.bend as Json Lines 42-57 of bend-net-json@0.3.0.0/json.bend: https://jend.leeeet.dev/read.txt?path=bend-net-json@0.3.0.0/json.bend&start_line=42&end_line=57 import Base # Bool.pick runs both arms, so loops peek: the next char's class is a Bool # param and only the matching arm recurses. def ws.go(t: String, +c: U32, ws: Bool) -> String: match t: case SNil{}: match ws: case True{}: SNil{} case False{}: SCon{Chr{c}, SNil{}} case SCon{Chr{+d}, u}: match ws: case True{}: ws.go(u, d, is_ws(d)) case False{}: SCon{Chr{c}, SCon{Chr{d}, u}} Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Char https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bend-net-json@0.3.0.0/json.bend&name=is_ws