B64.strip_pad.pick: def of bendonnect-rpc@0.1.0.0 Import: import bendonnect-rpc@0.1.0.0/src/b64.bend as B64 Lines 7-13 of bendonnect-rpc@0.1.0.0/src/b64.bend: https://jend.leeeet.dev/read.txt?path=bendonnect-rpc@0.1.0.0/src/b64.bend&start_line=7&end_line=13 import Base # Drops the leading '=' run of a reversed string (i.e. trailing pad of the original). def strip_pad.pick(hit: Bool, h: Char, t: String, rest: Unit -> String) -> String: match hit: case True{}: rest(Unit{}) case False{}: SCon{h, t} Uses (4): 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=Unit