def owns

near-v-framework@0.4.0.0 · domain/architecture/environment/inventory/ops.bend:11

import near-v-framework@0.4.0.0/domain/architecture/environment/inventory/ops.bend as Ops
import 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)

Uses (4)

Used by (1)