def nth

bend-collections@1.0.0.0 · src/crypto/secp256k1/point.bend:33

import bend-collections@1.0.0.0/src/crypto/secp256k1/point.bend as Point
import Base
import bend-collections@1.0.0.0/src/crypto/secp256k1/field.bend as F

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

Uses (3)

Used by (3)