def strip_pad.pick
import bendonnect-rpc@0.1.0.0/src/b64.bend as B64import Base
7# Drops the leading '=' run of a reversed string (i.e. trailing pad of the original).
8def strip_pad.pick(hit: Bool, h: Char, t: String, rest: Unit -> String) -> String:
9 match hit:
10 case True{}:
11 rest(Unit{})
12 case False{}:
13 SCon{h, t}