Queue.trim: 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 49-51 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=49&end_line=51 import Base def trim(~E: Data,queue: Queue,boundary: Nat,capacity: Nat) -> Queue: match queue: case Queue{+front,+back,+size,+dropped}: trim_loop(~E,Nat.add(size,1n),Queue{front,back,size,dropped},boundary,capacity) Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.add https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/internal/relation_failures/queue.bend&name=Queue https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/internal/relation_failures/queue.bend&name=trim_loop