def product_install

bendvy-ecs-core@0.1.0.4 · restore_graph_machine.bend:94

import bendvy-ecs-core@0.1.0.4/restore_graph_machine.bend as RestoreGraphMachine
import Base
import bendvy-ecs-core@0.1.0.4/decode_data.bend as D
import bendvy-ecs-core@0.1.0.4/owner_product.bend as Product

94def product_install(~L:Type,~Right:Type,~left:L -> List<&2,D.Field> -> L,~right:Right -> List<&2,D.Field> -> Right,owner:Product.Owner<L,Right>,fields:List<&2,D.Field>) -> Product.Owner<L,Right>:
95  match owner:
96    case Product.Owner{l,r}:
97      +values=fields
98      Product.Owner{left(l,values),right(r,values)}

Uses (3)

Used by (1)