def past_window
import bendvy-ecs-core@0.1.0.4/event_runtime.bend as EventRuntimeimport Base
75def past_window(~E: Data,batches: List<&2,Batch<E>>,+boundary: Nat,+dropped: Nat) -> Trimmed<E>:
76 match batches:
77 case []: Trimmed{[],dropped}
78 case Batch{+tick,+items} <> +rest: past_checked(~E,Nat.is_le(tick,boundary),tick,items,rest,dropped,gone => past_window(~E,rest,boundary,gone))