def layout
import bendvy-ecs-core@0.1.0.3/chunk_query.bend as ChunkQueryimport Base
import bendvy-ecs-core@0.1.0.3/chunk_column.bend as C
31def layout(~S:Data,~A:Type,column:C.Column<S,A>) -> C.Column<S,A> & Layout:
32 match column:
33 case C.Leaf{values,stamps}: (C.Leaf{values,stamps},LayoutLeaf{})
34 case C.Branch{+half,left,right}: layout_join(~S,~A,half,layout(~S,~A,left),layout(~S,~A,right))