Poly.scale: def of bend-collections-laws-crypto@1.0.0.0 Import: import bend-collections-laws-crypto@1.0.0.0/spec/crypto/aes/poly.bend as Poly Lines 18-24 of bend-collections-laws-crypto@1.0.0.0/spec/crypto/aes/poly.bend: https://jend.leeeet.dev/read.txt?path=bend-collections-laws-crypto@1.0.0.0/spec/crypto/aes/poly.bend&start_line=18&end_line=24 import Base # c * a for a constant c in GF(2). def scale(+c: Bool, a: List<&2, Bool>) -> List<&2, Bool>: match a: case Nil{}: Nil{} case x <> xs: Bool.and(c, x) <> scale(c, xs) Uses (3): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.and https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List