def parent_match

bendvy-ecs-core@0.1.0.3 · relation_reorder_core.bend:11

import bendvy-ecs-core@0.1.0.3/relation_reorder_core.bend as RelationReorderCore
import Base
import entity_key.bend as K

11def parent_match(value: Maybe<&2,K.Key>,parent: K.Key) -> Bool:
12  match value:
13    case None{}: False{}
14    case Some{id}: K.equal(id,parent)

Uses (4)

Used by (1)