Blowfish.bf.set_p: def of bend-osdev-legacy-ciphers@0.1.0.0 Import: import bend-osdev-legacy-ciphers@0.1.0.0/blowfish.bend as Blowfish Lines 260-274 of bend-osdev-legacy-ciphers@0.1.0.0/blowfish.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-legacy-ciphers@0.1.0.0/blowfish.bend&start_line=260&end_line=274 import Base # P entries i and i + 1 replaced by h and l def bf.set_p(i: Nat, ps: List<&2, U32>, +h: U32, +l: U32) -> List<&2, U32>: match i: case 0n: match ps: case Con{p, Con{q, u}}: Con{h, Con{l, u}} case _: Nil{} case 1n+j: match ps: case Con{p, t}: Con{p, bf.set_p(j, t, h, l)} case Nil{}: Nil{} Uses (3): 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