Generic.sq_val: def of bend-collections-laws-crypto@1.0.0.0 Import: import bend-collections-laws-crypto@1.0.0.0/src/math/generic.bend as Generic Lines 150-156 of bend-collections-laws-crypto@1.0.0.0/src/math/generic.bend: https://jend.leeeet.dev/read.txt?path=bend-collections-laws-crypto@1.0.0.0/src/math/generic.bend&start_line=150&end_line=156 import Base import bend-collections-laws-crypto@1.0.0.0/src/math/num.bend as N # the base squared, only while higher exponent bits remain def sq_val(~T: Data, ~op: N.Op -> T, more: Bool, +b: T) -> T: match more: case False{}: b case True{}: op(N.Mul{b, b}) Uses (2): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/src/math/num.bend&name=Op