def enqueue
import bendvy-ecs-core@0.1.0.4/commands.bend as Commandsimport Base
import bendvy-ecs-core@0.1.0.4/deferred_command.bend as Deferred
import bendvy-ecs-core@0.1.0.4/world.bend as W
14# Append the supplied FIFO command list to World pending work, returning World.
15# This transfers affine command closures but does not execute them; W.barrier is
16# the explicit visibility boundary. Raw command callbacks are trusted adapters.
17def enqueue(~S: Data,~C: Type,~R: Type,~E: Data,world: W.World<S,C,R,E>,commands:List<Deferred.Command<W.World<S,C,R,E>>>) -> W.World<S,C,R,E>:
18 enqueue_list(~S,~C,~R,~E,commands,world)