MachineStreamQueue.normalize_generic: def of bendvy-ecs-core@0.1.0.3 Import: import bendvy-ecs-core@0.1.0.3/machine_stream_queue.bend as MachineStreamQueue Lines 30-33 of bendvy-ecs-core@0.1.0.3/machine_stream_queue.bend: https://jend.leeeet.dev/read.txt?path=bendvy-ecs-core@0.1.0.3/machine_stream_queue.bend&start_line=30&end_line=33 import Base def normalize_generic(-E: Data,queue: Queue) -> Queue: match queue: case Queue{Nil{},back,size,dropped,batches}: Queue{List.reverse(&2,Batch,back),[],size,dropped,batches} case Queue{front,back,size,dropped,batches}: Queue{front,back,size,dropped,batches} Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.reverse https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/machine_stream_queue.bend&name=Batch https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.3/machine_stream_queue.bend&name=Queue