Queue.remove.list.keep: def of bend-kit-scheduler@0.4.1.0 Import: import bend-kit-scheduler@0.4.1.0/queue.bend as Queue Lines 61-67 of bend-kit-scheduler@0.4.1.0/queue.bend: https://jend.leeeet.dev/read.txt?path=bend-kit-scheduler@0.4.1.0/queue.bend&start_line=61&end_line=67 import Base # ponytail: eager O(n) cancellation; indexed deletion if cancellation dominates. def remove.list.keep(-A: Data, b: Bool, t: Ticket, rest: List<&2, Ticket>) -> List<&2, Ticket>: match b: case True{}: rest case False{}: t <> rest Uses (3): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=bend-kit-scheduler@0.4.1.0/queue.bend&name=Ticket