def rc4.get
import bend-osdev-legacy-ciphers@0.1.0.0/rc4.bend as Rc4import Base
import bend-osdev-legacy-ciphers@0.1.0.0/legacy_ciphers.bend as L
30def rc4.get(t: L.LcTab, path: List<&2, Bool>) -> U32:
31 match t:
32 case L.LcLeaf{v}:
33 v
34 case L.LcNode{l, r}:
35 match path:
36 case Nil{}:
37 0
38 case Con{b, rest}:
39 match b:
40 case True{}:
41 rc4.get(r, rest)
42 case False{}:
43 rc4.get(l, rest)