LegacyCiphers.lc.nth: def of bend-osdev-legacy-ciphers@0.1.0.0 Import: import bend-osdev-legacy-ciphers@0.1.0.0/legacy_ciphers.bend as LegacyCiphers Lines 228-238 of bend-osdev-legacy-ciphers@0.1.0.0/legacy_ciphers.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-legacy-ciphers@0.1.0.0/legacy_ciphers.bend&start_line=228&end_line=238 import Base # the element i of bs (False past the end) def lc.nth(bs: List<&2, Bool>, i: Nat) -> Bool: match bs: case Nil{}: False{} case Con{h, t}: match i: case 0n: h case 1n+p: lc.nth(t, p) Uses (3): 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