AmlResource.res.loop: def of bend-osdev-acpi@0.1.2.0 Import: import bend-osdev-acpi@0.1.2.0/aml_resource.bend as AmlResource Lines 249-260 of bend-osdev-acpi@0.1.2.0/aml_resource.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-acpi@0.1.2.0/aml_resource.bend&start_line=249&end_line=260 import Base import bend-osdev-acpi@0.1.2.0/error.bend as E def res.loop(fuel: Nat, r: Result<&2, &2, E.AcpiError, AmlResNext>, acc: List<&2, AmlResource>) -> Result<&2, &2, E.AcpiError, List<&2, AmlResource>>: match fuel: case 0n: Done{List.reverse(&2, AmlResource, acc)} case 1n+p: match r: case Fail{e}: Fail{e} case Done{AmlResEnd{}}: Done{List.reverse(&2, AmlResource, acc)} case Done{AmlResMore{x, +rest}}: res.loop(p, res.step(rest), Con{x, acc}) Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.reverse https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.2.0/aml_resource.bend&name=AmlResNext https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.2.0/aml_resource.bend&name=AmlResource https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.2.0/aml_resource.bend&name=res.step https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.2.0/error.bend&name=AcpiError