def drain_fifo_traced

bendvy-ecs-core@0.1.0.4 · world.bend:221

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

221def 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:
222  match commands:
223    case []:(world,trace)
224    case command <> rest:
225      drain_apply(~S,~C,~R,~E,command,drain_fifo_traced(~S,~C,~R,~E,rest,world,trace))

Uses (7)

Used by (1)