def strip_pad.pick

bendonnect-rpc@0.1.0.0 · src/b64.bend:7

import bendonnect-rpc@0.1.0.0/src/b64.bend as B64
import 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}

Uses (4)

Used by (1)