RuleDbus.AaDbus.set: def of bend-osdev-apparmor@0.1.0.0 Import: import bend-osdev-apparmor@0.1.0.0/rule_dbus.bend as RuleDbus Lines 64-82 of bend-osdev-apparmor@0.1.0.0/rule_dbus.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-apparmor@0.1.0.0/rule_dbus.bend&start_line=64&end_line=82 import Base import bend-osdev-apparmor@0.1.0.0/glob.bend as G # slot i of the list set to g; None if it is set already def AaDbus.set(n: Nat, xs: List<&2, Maybe<&2, G.AaGlob>>, g: G.AaGlob) -> Maybe<&2, List<&2, Maybe<&2, G.AaGlob>>>: match n: case 0n: match xs: case Nil{}: None{} case Con{x, rest}: match x: case None{}: Some{Con{Some{g}, rest}} case Some{h}: None{} case 1n+m: match xs: case Nil{}: None{} case Con{x, rest}: AaDbus.set.cons(x, AaDbus.set(m, rest, g)) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=bend-osdev-apparmor@0.1.0.0/glob.bend&name=AaGlob https://jend.leeeet.dev/definition.txt?path=bend-osdev-apparmor@0.1.0.0/rule_dbus.bend&name=AaDbus.set.cons