def owns
import near-v-framework@0.4.0.0/domain/architecture/environment/inventory/ops.bend as Opsimport Base
import near-v-framework@0.4.0.0/domain/architecture/environment/inventory/type.bend as I
11# Whether the owner has the device with this key, under this name.
12def owns(inv: I.Inventory, +key: String, +name: String) -> Bool:
13 match inv:
14 case I.Inventory{_, devices}:
15 owns.go(devices, key, name)