Algo.bitw.to_list: def of bend-osdev-algo@0.1.0.0 Import: import bend-osdev-algo@0.1.0.0/algo.bend as Algo Lines 122-130 of bend-osdev-algo@0.1.0.0/algo.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-algo@0.1.0.0/algo.bend&start_line=122&end_line=130 import Base # the bits of w, least significant first, in front of rest def bitw.to_list(n: Nat, w: Word(n), rest: List<&2, Bool>) -> List<&2, Bool>: match n: case 0n: rest case 1n+p: match w: case WCon{b, t}: Con{b, bitw.to_list(p, t, rest)} 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=List 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