Queue.trim_step: def of bendvy-ecs-core@0.1.0.4 Import: import bendvy-ecs-core@0.1.0.4/internal/relation_failures/queue.bend as Queue Lines 34-37 of bendvy-ecs-core@0.1.0.4/internal/relation_failures/queue.bend: https://jend.leeeet.dev/read.txt?path=bendvy-ecs-core@0.1.0.4/internal/relation_failures/queue.bend&start_line=34&end_line=37 import Base def trim_step(~E: Data,remove: Bool,+tick: Nat,+count: Nat,+items: List<&2,E>,+rest: List<&2,Batch>,+back: List<&2,Batch>,+size: Nat,+dropped: Nat,ih: Queue -> Queue) -> Queue: match remove: case False{}: Queue{Batch{tick,count,items} <> rest,back,size,dropped} case True{}: ih(Queue{rest,back,Nat.sub(size,count),Nat.max(dropped,tick)}) Uses (7): 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=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.max https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.sub https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/internal/relation_failures/queue.bend&name=Batch https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/internal/relation_failures/queue.bend&name=Queue