def rebuild
import bendvy-ecs-core@0.1.0.3/chunk_column.bend as ChunkColumnimport Base
126def rebuild(~S:Data,~C:Type,path:Path<S,C>,column:Column<S,C>) -> Column<S,C>:
127 match path:
128 case Root{}: column
129 case FromLeft{half,right,parent}: rebuild(~S,~C,parent,Branch{half,column,right})
130 case FromRight{half,left,parent}: rebuild(~S,~C,parent,Branch{half,left,column})