def AmlNs.get
import bend-osdev-acpi@0.1.1.0/aml_ns.bend as AmlNsimport Base
167# the object at a path
168def AmlNs.get(ns: AmlNs, +p: String) -> Maybe<&2, AmlObject>:
169 match ns:
170 case AmlNs{+m}:
171 ns.got(ns.snd.bool(Map.has(&2, AmlObject, m, p)), m, p)