def layout

bendvy-ecs-core@0.1.0.3 · chunk_query.bend:31

import bendvy-ecs-core@0.1.0.3/chunk_query.bend as ChunkQuery
import 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))

Uses (5)

Used by (1)