Check.ramp: def of bend-osdev-bytes@0.1.1.1 Import: import bend-osdev-bytes@0.1.1.1/check.bend as Check Lines 19-25 of bend-osdev-bytes@0.1.1.1/check.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-bytes@0.1.1.1/check.bend&start_line=19&end_line=25 import Base # n bytes 0, 1, 2, ... (mod 256), built tail-recursively def ramp(n: Nat, acc: List<&2, U32>) -> List<&2, U32>: match n: case 0n: acc case 1n+(+p): ramp(p, Con{U32.and(U32.from_nat(p), 255), acc}) Uses (5): 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=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.and https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.from_nat