def run
import bendvy-ecs-core@0.1.0.3/deferred_command.bend as DeferredCommandimport Base
import bendvy-ecs-core@0.1.0.3/trace_facts.bend as Facts
8def run(~W:Type,command:Command<W>,world:W,trace:Facts.State) -> W & Facts.State:
9 match command:
10 case Raw{apply}:(apply(world),trace)
11 case Observed{apply}:apply(trace,world)