def AmlNs.get

bend-osdev-acpi@0.1.1.0 · aml_ns.bend:167

import bend-osdev-acpi@0.1.1.0/aml_ns.bend as AmlNs
import 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)

Uses (7)

Used by (16)