def lc.rev_bits
import bend-osdev-legacy-ciphers@0.1.0.0/legacy_ciphers.bend as LegacyCiphersimport Base
195# bs reversed, in front of acc
196def lc.rev_bits(bs: List<&2, Bool>, acc: List<&2, Bool>) -> List<&2, Bool>:
197 match bs:
198 case Nil{}:
199 acc
200 case Con{h, t}:
201 lc.rev_bits(t, Con{h, acc})