def comp

bend-collections@1.0.0.0 · src/crypto/secp256k1/limbs.bend:112

import bend-collections@1.0.0.0/src/crypto/secp256k1/limbs.bend as Limbs
import Base

112# every limb x becomes 2^16 - 1 - x
113def comp(xs: List<&2, Nat>) -> List<&2, Nat>:
114  match xs:
115    case Nil{}: Nil{}
116    case x <> t: comp1(x) <> comp(t)

Uses (3)

Used by (1)