HierarchyTraversalProvider.checked_root: def of bendvy-ecs-core@0.1.0.4 Import: import bendvy-ecs-core@0.1.0.4/hierarchy_traversal_provider.bend as HierarchyTraversalProvider Lines 45-48 of bendvy-ecs-core@0.1.0.4/hierarchy_traversal_provider.bend: https://jend.leeeet.dev/read.txt?path=bendvy-ecs-core@0.1.0.4/hierarchy_traversal_provider.bend&start_line=45&end_line=48 import Base import bendvy-ecs-core@0.1.0.4/relation_types.bend as G import bendvy-ecs-core@0.1.0.4/relation_commands.bend as A import bendvy-ecs-core@0.1.0.4/relation_reorder.bend as Reorder import bendvy-ecs-core@0.1.0.4/world.bend as W def checked_root(~S:Data,~C:Type,~R:Type,~E:Data,~descriptor:G.HierarchyDescriptor,observed:W.World,R,A.Notice> & Bool,target:W.Handle) -> W.World,R,A.Notice> & Maybe<&2,W.Handle>: match observed: case (world,False{}): (world,None{}) case (world,True{}): W.with_store(~S,~A.Store,~R,~A.Notice,~Maybe<&2,W.Handle>,store => store_root(~S,~C,store,Reorder.descriptor(~S,descriptor),target),world) Uses (12): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/hierarchy_traversal_provider.bend&name=store_root 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_reorder.bend&name=descriptor https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/relation_types.bend&name=HierarchyDescriptor 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