def trim_loop
import bendvy-ecs-core@0.1.0.4/internal/relation_failures/queue.bend as Queueimport Base
44def trim_loop(~E: Data,fuel: Nat,queue: Queue<E>,+boundary: Nat,+capacity: Nat) -> Queue<E>:
45 match fuel:
46 case Zero{}: queue
47 case Succ{rest}: trim_normalized(~E,normalize(~E,queue),boundary,capacity,next => trim_loop(~E,rest,next,boundary,capacity))