Int.Int.ext: def of bend-kit-int@0.2.0.0 Import: import bend-kit-int@0.2.0.0/int.bend as Int Lines 45-56 of bend-kit-int@0.2.0.0/int.bend: https://jend.leeeet.dev/read.txt?path=bend-kit-int@0.2.0.0/int.bend&start_line=45&end_line=56 import Base def Int.ext(m: Nat, n: Nat, +fill: Bool, w: Word(n)) -> Word(m): match m: case 0n: WNil{} case 1n+p: match n: case 0n: WCon{fill, Int.ext(p, 0n, fill, WNil{})} case 1n+q: match w: case WCon{b, t}: WCon{b, Int.ext(p, q, fill, t)} Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Word https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Word.Con https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Word.Nil