Nar.b64: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/sha/nar.bend as Nar Lines 153-163 of ezx@1.11.0.0/src/sha/nar.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/sha/nar.bend&start_line=153&end_line=163 import Base # standard base64, padded with `=` def b64(text: String) -> String: match text: case SNil{}: "" case SCon{a, SNil{}}: b64.one(Char.to_u32(a)) case SCon{a, SCon{b, SNil{}}}: b64.two(Char.to_u32(a), Char.to_u32(b)) case SCon{a, SCon{b, SCon{c, t}}}: b64.triple(Char.to_u32(a), Char.to_u32(b), Char.to_u32(c)) ++ b64(t) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Char.to_u32 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=ezx@1.11.0.0/src/sha/nar.bend&name=b64.one https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/sha/nar.bend&name=b64.triple https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/sha/nar.bend&name=b64.two