def nm.show.segs
import bend-osdev-acpi@0.1.1.0/aml_name.bend as AmlNameimport Base
import bend-osdev-bytes@0.1.1.0/bytes.bend as B
357def nm.show.segs(ss: List<&2, B.Octets>, first: Bool) -> String:
358 match ss:
359 case Nil{}:
360 ""
361 case Con{s, t}:
362 match first:
363 case True{}:
364 B.Octets.to_string(s) ++ nm.show.segs(t, False{})
365 case False{}:
366 "." ++ B.Octets.to_string(s) ++ nm.show.segs(t, False{})