OwnerProduct.take: def of bendvy-ecs-core@0.1.0.3 Import: import bendvy-ecs-core@0.1.0.3/owner_product.bend as OwnerProduct Lines 17-20 of bendvy-ecs-core@0.1.0.3/owner_product.bend: https://jend.leeeet.dev/read.txt?path=bendvy-ecs-core@0.1.0.3/owner_product.bend&start_line=17&end_line=20 import Base def take(~L:Type,~R:Type,path:Path,owner:Owner) -> Rest(~L,~R,path) & Part(~L,~R,path): match path owner: case Left{} Owner{left,right}:(right,left) case Right{} Owner{left,right}:(left,right) Uses (6): 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.3/owner_product.bend&name=Owner https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/owner_product.bend&name=Part https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/owner_product.bend&name=Path https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/owner_product.bend&name=Rest