Limbs.cbits: def of bend-collections-laws-crypto@1.0.0.0 Import: import bend-collections-laws-crypto@1.0.0.0/src/crypto/secp256k1/limbs.bend as Limbs Lines 213-217 of bend-collections-laws-crypto@1.0.0.0/src/crypto/secp256k1/limbs.bend: https://jend.leeeet.dev/read.txt?path=bend-collections-laws-crypto@1.0.0.0/src/crypto/secp256k1/limbs.bend&start_line=213&end_line=217 import Base # every bit flipped: the bits of 2^k - 1 - x from those of x def cbits(bs: List<&2, Nat>) -> List<&2, Nat>: match bs: case Nil{}: Nil{} case b <> t: Nat.sub(1n, b) <> cbits(t) Uses (3): 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.sub