Call this something like `getElements`, it's not clear what a `Q` would mean and it's not really a queue either (because it's not FIFO)