CipherCore.lc.nth: def of bend-osdev-cipher-core@0.1.0.0 Import: import bend-osdev-cipher-core@0.1.0.0/cipher_core.bend as CipherCore Lines 225-235 of bend-osdev-cipher-core@0.1.0.0/cipher_core.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-cipher-core@0.1.0.0/cipher_core.bend&start_line=225&end_line=235 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