def ap.nth
import bend-osdev-aes@0.1.0.0/PROOF.bend as PROOFimport Base
35def ap.nth(xs: List<&2, U32>, n: Nat) -> U32:
36 match xs n:
37 case Nil{} _:
38 0
39 case Con{x, t} 0n:
40 x
41 case Con{x, t} 1n+p:
42 ap.nth(t, p)