def trim_loop

bendvy-ecs-core@0.1.0.4 · internal/relation_failures/queue.bend:44

import bendvy-ecs-core@0.1.0.4/internal/relation_failures/queue.bend as Queue
import 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))

Uses (4)

Used by (1)