let dequeue_with_key_exn t = match dequeue_with_key t with | None -> raise Dequeue_with_key_empty | Some (k, v) -> (k, v)