def madt.rev
import bend-osdev-acpi@0.1.1.0/madt.bend as Madtimport Base
167def madt.rev(xs: List<&2, AcpiMadtEntry>, acc: List<&2, AcpiMadtEntry>) -> List<&2, AcpiMadtEntry>:
168 match xs:
169 case Nil{}:
170 acc
171 case Con{h, t}:
172 madt.rev(t, Con{h, acc})