def drain_fifo_traced

bendvy-ecs-core@0.1.0.3 · world.bend:223

import bendvy-ecs-core@0.1.0.3/world.bend as World
import Base
import bendvy-ecs-core@0.1.0.3/trace_facts.bend as TraceFacts
import bendvy-ecs-core@0.1.0.3/deferred_command.bend as Deferred

223def drain_fifo_traced(~S:Data,~C:Type,~R:Type,~E:Data,commands:List<Deferred.Command<World<S,C,R,E>>>,world:World<S,C,R,E>,trace:TraceFacts.State) -> World<S,C,R,E> & TraceFacts.State:
224  match commands:
225    case []:(world,trace)
226    case command <> rest:
227      drain_apply(~S,~C,~R,~E,command,drain_fifo_traced(~S,~C,~R,~E,rest,world,trace))

Uses (7)

Used by (1)