def cm.blocks.rev_onto

bend-osdev-cipher-modes@0.1.0.0 · cipher_modes.bend:187

import bend-osdev-cipher-modes@0.1.0.0/cipher_modes.bend as CipherModes
import Base

187# the blocks of bs in reverse order, in front of acc
188def cm.blocks.rev_onto(bs: List<&2, CmBlock>, acc: List<&2, CmBlock>) -> List<&2, CmBlock>:
189  match bs:
190    case Nil{}:
191      acc
192    case Con{b, t}:
193      cm.blocks.rev_onto(t, Con{b, acc})

Uses (2)

Used by (18)