def lc.rev_bits

bend-osdev-legacy-ciphers@0.1.0.0 · legacy_ciphers.bend:195

import bend-osdev-legacy-ciphers@0.1.0.0/legacy_ciphers.bend as LegacyCiphers
import 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})

Uses (2)

Used by (2)