def route

bendvy-ecs-core@0.1.0.3 · chunk_column.bend:137

import bendvy-ecs-core@0.1.0.3/chunk_column.bend as ChunkColumn
import Base

137def route(~S:Data,~C:Type,left:Column<S,C>,right:Column<S,C>,+half:U32,+index:U32,incoming:Maybe<&1,C>,path:Path<S,C>,first:Bool) -> Search<S,C>:
138  match first:
139    case True{}: Search{left,index,incoming,FromLeft{half,right,path}}
140    case False{}: Search{right,U32.sub(index,half),incoming,FromRight{half,left,path}}

Uses (7)

Used by (1)