MathCheckedWord.multiply_step: def of stelliferous@0.0.2.0 Import: import stelliferous@0.0.2.0/math_checked_word.bend as MathCheckedWord Lines 15-18 of stelliferous@0.0.2.0/math_checked_word.bend: https://jend.leeeet.dev/read.txt?path=stelliferous@0.0.2.0/math_checked_word.bend&start_line=15&end_line=18 import Base def multiply_step(bit: Bool,right: Nat,previous: Maybe<&2,Nat>,limit: Nat) -> Maybe<&2,Nat>: match previous: case None{}: None{} case Some{value}: bounded(Nat.add(Nat.double(value),Bool.pick(Nat,bit,right,0n)),limit) Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.pick https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.add https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.double https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/math_checked_word.bend&name=bounded