def since
import bendvy-ecs-core@0.1.0.4/event_runtime.bend as EventRuntimeimport Base
152def since(~E: Data,batches: List<&2,Batch<E>>,+cursor: Nat) -> List<&2,E>:
153 match batches:
154 case []: []
155 case Batch{+tick,+items} <> rest: since_checked(~E,Nat.is_lt(cursor,tick),items,since(~E,rest,cursor))