Generic.pow_mod: def of bend-collections-laws-math@1.0.0.0 Import: import bend-collections-laws-math@1.0.0.0/src/math/generic.bend as Generic Lines 549-551 of bend-collections-laws-math@1.0.0.0/src/math/generic.bend: https://jend.leeeet.dev/read.txt?path=bend-collections-laws-math@1.0.0.0/src/math/generic.bend&start_line=549&end_line=551 import Base import bend-collections-laws-math@1.0.0.0/src/math/num.bend as N # Python's pow(b, e, m) for m > 0 def pow_mod(~T: Data, ~op: N.Op -> T, ~test: N.Test -> Bool, +b: T, +e: T, +m: T) -> Result<&2, &2, N.NumError, T>: pow_mod_ok(~T, ~op, ~test, b, e, m, test(N.IsZero{m})) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-math@1.0.0.0/src/math/generic.bend&name=pow_mod_ok https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-math@1.0.0.0/src/math/num.bend&name=NumError https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-math@1.0.0.0/src/math/num.bend&name=Op https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-math@1.0.0.0/src/math/num.bend&name=Test