RelationReorderCore.validate_erased: def of bendvy-ecs-core@0.1.0.3 Import: import bendvy-ecs-core@0.1.0.3/relation_reorder_core.bend as RelationReorderCore Lines 43-46 of bendvy-ecs-core@0.1.0.3/relation_reorder_core.bend: https://jend.leeeet.dev/read.txt?path=bendvy-ecs-core@0.1.0.3/relation_reorder_core.bend&start_line=43&end_line=46 import Base import entity_key.bend as K import relation_types.bend as T import relation_graph.bend as C def validate_erased(-S: Data,parentLive: Bool,+graph: T.Graph,+d: T.Descriptor,+parent: K.Key,+children: List<&2,T.ChildStatus>) -> Maybe<&2,T.Error>: match parentLive: case False{}: Some{T.MissingEntity{parent}} case True{}: mismatch(Bool.and(same_count(C.inverse_erased(S,graph,d,parent),child_ids(children)),subset(C.inverse_erased(S,graph,d,parent),child_ids(children))),children_checked_erased(S,children,graph,d,parent,[]),parent,C.name_erased(S,d)) Uses (16): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.and 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=bendvy-ecs-core@0.1.0.3/entity_key.bend&name=Key https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/relation_graph.bend&name=inverse_erased https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/relation_graph.bend&name=name_erased https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/relation_reorder_core.bend&name=child_ids https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/relation_reorder_core.bend&name=children_checked_erased https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/relation_reorder_core.bend&name=mismatch https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/relation_reorder_core.bend&name=same_count https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/relation_reorder_core.bend&name=subset https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/relation_types.bend&name=ChildStatus https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/relation_types.bend&name=Descriptor https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/relation_types.bend&name=Error https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/relation_types.bend&name=Graph