def nth

bend-collections-laws-crypto@1.0.0.0 · spec/crypto/secp256k1/curve.bend:32

import bend-collections-laws-crypto@1.0.0.0/spec/crypto/secp256k1/curve.bend as Curve
import Base

32def nth(i: Nat, regs: List<&2, Nat>) -> Nat:
33  match i regs:
34    case _ Nil{}: 0n
35    case 0n r <> t: r
36    case 1n+k r <> t: nth(k, t)

Uses (2)

Used by (7)