Rc4.rc4.path: def of bend-osdev-legacy-ciphers@0.1.0.0 Import: import bend-osdev-legacy-ciphers@0.1.0.0/rc4.bend as Rc4 Lines 22-28 of bend-osdev-legacy-ciphers@0.1.0.0/rc4.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-legacy-ciphers@0.1.0.0/rc4.bend&start_line=22&end_line=28 import Base import bend-osdev-legacy-ciphers@0.1.0.0/legacy_ciphers.bend as L # the bits of i (below 2^d) that pick its entry, most significant first def rc4.path(d: Nat, +i: U32) -> List<&2, Bool>: match d: case 0n: Nil{} case 1n+(+p): Con{U32.is_eq(L.lc.bit(i, p), 1), rc4.path(p, i)} Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_eq https://jend.leeeet.dev/definition.txt?path=bend-osdev-legacy-ciphers@0.1.0.0/legacy_ciphers.bend&name=lc.bit