RelationCleanup.automatic: def of bendvy-ecs-core@0.1.0.4 Import: import bendvy-ecs-core@0.1.0.4/relation_cleanup.bend as RelationCleanup Lines 109-111 of bendvy-ecs-core@0.1.0.4/relation_cleanup.bend: https://jend.leeeet.dev/read.txt?path=bendvy-ecs-core@0.1.0.4/relation_cleanup.bend&start_line=109&end_line=111 import Base import relation_types.bend as G import relation_commands.bend as A import world.bend as W def automatic(~S:Data,~C:Type,~R:Type,~E:Data,~clear:C -> W.Handle -> C & List<&2,A.Notice>,~record:W.Handle -> A.Notice,world:W.World,R,A.Notice>,handle:W.Handle,descriptors:List<&2,G.Descriptor>) -> CleanupResult: match handle: case W.Handle{namespace,id}: automatic_inventory(~S,~C,~R,~E,~clear,~record,W.with_store(~S,~A.Store,~R,~A.Notice,~List<&2,G.Edge>,store => original_edges(~S,~C,store),world),namespace,id,descriptors) Uses (12): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/relation_cleanup.bend&name=CleanupResult https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/relation_cleanup.bend&name=automatic_inventory https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/relation_cleanup.bend&name=original_edges https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/relation_commands.bend&name=Notice https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/relation_commands.bend&name=Store https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/relation_types.bend&name=Descriptor https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/relation_types.bend&name=Edge https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/world.bend&name=Handle https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/world.bend&name=World https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/world.bend&name=with_store