def rev_onto
import bend-osdev-bytes@0.1.1.0/bytes.bend as Bytesimport Base
248def rev_onto(xs: List<&2, U32>, acc: List<&2, U32>) -> List<&2, U32>:
249 match xs:
250 case Nil{}:
251 acc
252 case Con{h, t}:
253 rev_onto(t, Con{h, acc})