Limbs.horner: def of bend-collections@1.0.0.0 Import: import bend-collections@1.0.0.0/src/crypto/secp256k1/limbs.bend as Limbs Lines 90-94 of bend-collections@1.0.0.0/src/crypto/secp256k1/limbs.bend: https://jend.leeeet.dev/read.txt?path=bend-collections@1.0.0.0/src/crypto/secp256k1/limbs.bend&start_line=90&end_line=94 import Base # the value of the limbs (only ever of an empty list at run time: see carry) def horner(xs: List<&2, Nat>) -> Nat: match xs: case Nil{}: 0n case x <> t: Nat.add(Nat.mul(Nat.mul(horner(t), 256n), 256n), x) Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.add https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.mul