Natural.divmod: def of bend-collections@1.0.0.0 Import: import bend-collections@1.0.0.0/src/math/natural.bend as Natural Lines 333-338 of bend-collections@1.0.0.0/src/math/natural.bend: https://jend.leeeet.dev/read.txt?path=bend-collections@1.0.0.0/src/math/natural.bend&start_line=333&end_line=338 import Base def divmod(+a: Nat, +b: Nat) -> Result<&2, &2, MathError, QuotRem>: match b: case 0n: Fail{ZeroDivision{}} case 1n+ +bp: Done{QR{Nat.div(a, 1n+bp), Nat.mod(a, 1n+bp)}} Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.div https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.mod https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/src/math/natural.bend&name=MathError https://jend.leeeet.dev/definition.txt?path=bend-collections@1.0.0.0/src/math/natural.bend&name=QuotRem