MachineQueue.write_taken: def of bendvy-ecs-core@0.1.0.4 Import: import bendvy-ecs-core@0.1.0.4/machine_queue.bend as MachineQueue Lines 25-27 of bendvy-ecs-core@0.1.0.4/machine_queue.bend: https://jend.leeeet.dev/read.txt?path=bendvy-ecs-core@0.1.0.4/machine_queue.bend&start_line=25&end_line=27 import Base import bendvy-ecs-core@0.1.0.4/deferred_command.bend as Deferred import bendvy-ecs-core@0.1.0.4/trace_facts.bend as TraceFacts import bendvy-ecs-core@0.1.0.4/machine.bend as M import bendvy-ecs-core@0.1.0.4/transaction.bend as Tx def write_taken(~S:Data,~K:Data,~V:Data,~W:Type,~E:Data,~put:W -> M.Slot -> W,~same:V -> V -> Bool,pair:W & M.Slot,undo:List<&1,(W -> W)>,commands:List<&1,Deferred.Command>,events:List<&2,E>,trace:TraceFacts.State,value:V,skipSame:Bool) -> Tx.Tx: match pair: case (world,+old):Tx.Tx{put(world,queue(~S,~K,~V,~same,old,value,skipSame)),(world => put(world,old)) <> undo,commands,events,trace} Uses (9): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/deferred_command.bend&name=Command https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/machine.bend&name=Slot https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/machine_queue.bend&name=queue https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/trace_facts.bend&name=State https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/transaction.bend&name=Tx