Numeric.scale_binary: def of bend-collections-laws-math@1.0.0.0 Import: import bend-collections-laws-math@1.0.0.0/spec/lib/numeric.bend as Numeric Lines 86-92 of bend-collections-laws-math@1.0.0.0/spec/lib/numeric.bend: https://jend.leeeet.dev/read.txt?path=bend-collections-laws-math@1.0.0.0/spec/lib/numeric.bend&start_line=86&end_line=92 import Base # Mathematical multiplication by 2^places, specified without machine shifts. def scale_binary(places: Nat, value: Nat) -> Nat: match places: case 0n: value case 1n+p: Nat.double(scale_binary(p, value)) Uses (2): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.double