def past_loop

bendvy-ecs-core@0.1.0.4 · machine_stream_queue.bend:46

import bendvy-ecs-core@0.1.0.4/machine_stream_queue.bend as MachineStreamQueue
import Base

46def past_loop(~E:Data,fuel:Nat,queue:Queue<E>,+boundary:Nat) -> Queue<E>:
47  match fuel:
48    case Zero{}:queue
49    case Succ{rest}:past_normalized(~E,normalize(~E,queue),boundary,next => past_loop(~E,rest,next,boundary))

Uses (4)

Used by (1)